Forums / Templates, Stylesheets, Page Layout / uploading and downloading files

uploading and downloading files

Locked

Started by jazzyjeff on 26 Apr 2008, 7:02 PM · Views: 1,345

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Apr 2008, 7:02 PM
#1
jazzyjeff avatar

jazzyjeff

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

uploading and downloading files

hi,

how come when i download a file and open it with note pad when i upload it back to my website the file doesnt work properly, i have tried this many times
but when i upload it back my website doesnt work,

thanks for any help you can give

26 Apr 2008, 7:33 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: uploading and downloading files

notepad shouldn't be adding anything like dreamweaver, word, or frontpage so you might be accidentally changing something in the format. Make sure you have opening and closing characters () {} [] '' (double single quote) and that you haven't added a return after the last ?>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Apr 2008, 7:39 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: uploading and downloading files

Make sure WordWrap isn't checked ... :eek:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Apr 2008, 7:49 PM
#4
jazzyjeff avatar

jazzyjeff

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Re: uploading and downloading files

thanks for that but if thats the case can you tell me if anything is wrong with this code:-

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $
 */
 

define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

// Showcase vs Store
if (STORE_STATUS == '0') {
  define('TEXT_GREETING_GUEST', '');
} else {
  define('TEXT_GREETING_GUEST', '');
}

define('TEXT_GREETING_PERSONAL', '');

define('TEXT_INFORMATION', 'Define your main Index page copy here.');

//moved to english
//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
  // This section deals with product-listing page contents
  define('HEADING_TITLE', 'Available Products');
  define('TABLE_HEADING_IMAGE', 'Product Image');
  define('TABLE_HEADING_MODEL', 'Model');
  define('TABLE_HEADING_PRODUCTS', 'Product Name');
  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
  define('TABLE_HEADING_QUANTITY', 'Quantity');
  define('TABLE_HEADING_PRICE', 'Price');
  define('TABLE_HEADING_WEIGHT', 'Weight');
  define('TABLE_HEADING_BUY_NOW', 'Buy Now');
  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
  define('TEXT_SHOW', 'Filter Results by:');
  define('TEXT_BUY', 'Buy 1 \'');
  define('TEXT_NOW', '\' now');
  define('TEXT_ALL_CATEGORIES', 'All Categories');
  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
  // This section deals with the "home" page at the top level with no options/products selected
  /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
  define('HEADING_TITLE', 'Welcome to Furniture at Home.');
} elseif ($category_depth == 'nested') {
  // This section deals with displaying a subcategory
  /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
  define('HEADING_TITLE', 'Welcome to Furniture at Home online furniture.'); 
}
?>
26 Apr 2008, 8:19 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: uploading and downloading files

jazzyjeff:

how come when i download a file and open it with note pad when i upload it back to my website the file doesnt work properly, i have tried this many times
but when i upload it back** my website doesnt work**,

" my website doesnt work " ... isn't exactly a descriptive indication of what's happening.

Can you elaborate a bit?

Maybe you need the debug tool in step 2a of this article: https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Apr 2008, 7:55 AM
#6
jazzyjeff avatar

jazzyjeff

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Re: uploading and downloading files

yeah when you try to access my site it says:-

Fatal error: Call to undefined function: zen_check_url_get_terms() in /homepages/8/d229164676/htdocs/index.php on line 31

i cant see anything wrong with line 31 but the site was working perfectly
until i uploaded the file back the file was includes/lanuages/english/index.php

27 Apr 2008, 7:57 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: uploading and downloading files

jazzyjeff:

yeah when you try to access my site it says:-

Fatal error: Call to undefined function: zen_check_url_get_terms() in /homepages/8/d229164676/htdocs/index.php on line 31

i cant see anything wrong with line 31 but the site was working perfectly
until i uploaded the file back the file was includes/lanuages/english/index.php

Did you mistakenly copy the /includes/languages/english/index.php file overtop of the /index.php file?
You have to make sure you put things in the appropriate folder structure.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Apr 2008, 6:49 PM
#8
jazzyjeff avatar

jazzyjeff

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Re: uploading and downloading files

hi everybody,

just to a big thanks to everbody who helped me with this matter
i had uploaded the file to the wrong place but now moved it and
everthing is running fine.

thanks again,

jazzyjeff.