Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 07-24-2008, 10:39 AM   #1 (permalink)
Registered User
 
XP On CD's Avatar
 
Join Date: Jul 2007
Location: My Computer Screen
Posts: 36
OS: XP SP3 Home

My System

Send a message via ICQ to XP On CD Send a message via AIM to XP On CD Send a message via MSN to XP On CD Send a message via Yahoo to XP On CD Send a message via Skype™ to XP On CD
Warning!!!

Help Me Please! This Is The Code:
PHP Code:
<?php
$myFile 
"paragraph.txt";
$fh fopen($myFile'r');
$paragraph fread($fhfilesize($myFile));
fclose($fh);
?>

<?php
/*****************************************************************************
 *                                                                           *
 * Shop-Script FREE                                                          *
 * Copyright (c) 2005 WebAsyst LLC. All rights reserved.                     *
 *                                                                           *
 ****************************************************************************/

//language file

//        ENGLISH        //

//default character set, that will be used
define('DEFAULT_CHARSET''iso-8859-1');
define('LINK_TO_HOMEPAGE''Home');
define('PRODUCTS_BEST_CHOISE''<h5>Highest rated products:</h5>');
define('MORE_INFO_ON_PRODUCT''more info...');
define('ENLARGE_PICTURE''enlarge...');
define('ADD_TO_CART_STRING''add to cart');
define('LIST_PRICE''List price');
define('CURRENT_PRICE''Price');
define('YOU_SAVE''You save');
define('IN_STOCK''In stock');
define('VOTING_FOR_ITEM_TITLE''Rate this item');
define('MARK_EXCELLENT''Excellent');
define('MARK_GOOD''Good');
define('MARK_AVERAGE''Average');
define('MARK_POOR''Poor');
define('MARK_PUNY''Puny');
define('VOTE_BUTTON''Rate!');
define('VOTES_FOR_ITEM_STRING''vote(s)');

define('LOGOUT_LINK''Logout');
define('ADMINISTRATE_LINK''>> ADMINISTRATE <<');

define('ANSWER_YES''yes');
define('ANSWER_NO''no');
define('SAVE_BUTTON''Save');
define('DELETE_BUTTON''Delete');
define('CLOSE_BUTTON''Close');
define('CANCEL_BUTTON''Cancel');
define('UPDATE_BUTTON''Update');
define('ADD_BUTTON''Add');
define('ADMIN_ENABLED''Enabled');

//misc strings
define('STRING_BACK_TO_SHOPPING''Back to shopping');
define('STRING_SHOW''show');
define('STRING_NUMBER''number');
define('STRING_RELATED_ITEMS''Related items');
define('STRING_NUMBER_ONLY''number only');
define('STRING_EMPTY_CATEGORY''no products');
define('STRING_NO_ORDERS''no orders');
define('STRING_SEARCH''Search products');
define('STRING_LANGUAGE''Language');
define('STRING_PRICELIST''Price list');
define('STRING_GREETINGS'$paragraph);
define('STRING_FOUND''Found ');
define('STRING_NO_MATCHES_FOUND''No matches found');
define('STRING_PRODUCTS''product(s)');
define('STRING_ORDER_ID''Order ID');
define('STRING_ORDER_PLACED''<div align="center"><h1>Thank you for you order!</h1><h3>We will contact you as soon as possible.</h3></div>');
define('STRING_PLACE_ORDER''Place order!');
define('STRING_NEXT''next');
define('STRING_PREVIOUS''prev');
define('STRING_SHOWALL''show all');
define('STRING_REQUIRED''<font color=red>*</font> required');
define('STRING_CONTACT_INFORMATION''CONTACT INFORMATION');

define('CART_CONTENT_EMPTY''(no items)');
define('CART_CONTENT_NOT_EMPTY''item(s): ');
define('CART_TITLE''My shopping cart');
define('CART_CLEAR''clear');
define('CART_PROCEED_TO_CHECKOUT''Proceed to checkout');
define('CART_EMPTY''Shopping cart is empty');

//table titles

define('TABLE_PRODUCT_NAME''Product name');
define('TABLE_PRODUCT_QUANTITY''Quantity');
define('TABLE_PRODUCT_COST''Cost');
define('TABLE_TOTAL''Total:');
define('TABLE_ORDER_TIME''Order time');
define('TABLE_ORDERED_PRODUCTS''Ordered products');
define('TABLE_ORDER_TOTAL''Order total');
define('TABLE_CUSTOMER''Customer');

//different admin strings

define('ADMIN_TITLE''Administrative tools');

define('ADMIN_WELCOME''<p><font class=big>Welcome to the administrative back end!</font><p>Please use navigation menu to access administrative departments.');
define('ADMIN_NEW_ORDERS''New orders');
define('ADMIN_CATEGORIES_PRODUCTS''Categories and products');
define('ADMIN_CATALOG''Catalog');
define('ADMIN_SETTINGS''Configuration');
define('ADMIN_SETTINGS_GENERAL''General settings');
define('ADMIN_SETTINGS_APPEARENCE''Appearance');
define('ADMIN_CUSTOMERS_AND_ORDERS''Orders');
define('ADMIN_ABOUT_PAGE''About us');
define('ADMIN_SHIPPING_PAGE''Shipping and delivery');
define('ADMIN_AUX_INFO''Auxiliary information');
define('ADMIN_PAYPAL_INTEGRATION''Enable PayPal integration<br>(when enabled, customer will be offered to pay <br>by PayPal on the last step of checkout)');
define('ADMIN_PAYPAL_EMAIL''Your PayPal account email address<br>(leave blank if PayPal integration is disabled)');
define('ADMIN_BACK_TO_SHOP''go to front-end ...');
define('ADMIN_SORT_ORDER''Sort order');
define('ADMIN_LOGIN_PASSWORD''Admin login/password');
define('ADMIN_CHANGE_LOGINPASSWORD''Change administrator login and password');
define('ADMIN_CURRENT_LOGIN''Login');
define('ADMIN_OLD_PASS''Current password');
define('ADMIN_NEW_PASS''New password');
define('ADMIN_NEW_PASS_CONFIRM''Confirm new password');
define('ADMIN_UPDATE_SUCCESSFUL''<font color=blue><b>Update successful!</b></font>');
define('ADMIN_NO_SPECIAL_OFFERS''No special offers selected');
define('ADMIN_ADD_SPECIAL_OFFERS''Add to special offers list');
define('ADMIN_SPECIAL_OFFERS_DESC''Special offers are shown at the front-end homepage.<br>
You may select special offers in the <a href="admin.php?dpt=catalog&sub=products_categories">"Categories and products"</a>,<br>
by clicking <img src="images/admin_special_offer.gif" border=0> in the products table.<br>
You can only select products with a picture uploaded to the special offers list.'
);
define('ADMIN_ROOT_WARNING''<font color=red>All products in the root directory are not shown to users!</font>');
define('ADMIN_ABOUT_PRICES''<font class=small>// prices are actual for the time of the order //</font>');
define('ADMIN_SHOP_NAME''Store name');
define('ADMIN_SHOP_URL''Store URL');
define('ADMIN_SHOP_EMAIL''General contact email address');
define('ADMIN_ORDERS_EMAIL''Order notifications email');
define('ADMIN_SHOW_ADD2CART''Enable shopping cart facility<br>(uncheck to completely disable ordering feature)');
define('ADMIN_SHOW_BESTCHOICE''Show highest rated subcategories\' products in empty categories');
define('ADMIN_MAX_PRODUCTS_COUNT_PER_PAGE''Maximum products count per page');
define('ADMIN_MAX_COLUMNS_PER_PAGE''Maximum columns per page');
define('ADMIN_MAIN_COLORS''Colors used for tables and forms drawing (e.g. checkout form, shopping cart form, price list)');
define('ADMIN_COLOR''Color');
define('ADMIN_SPECIAL_OFFERS''Special offers');
define('ADMIN_CATEGORY_TITLE''Categories');
define('ADMIN_CATEGORY_NEW''Create new category');
define('ADMIN_CATEGORY_PARENT''Parent:');
define('ADMIN_CATEGORY_MOVE_TO''Move to:');
define('ADMIN_CATEGORY_NAME''Category name:');
define('ADMIN_CATEGORY_LOGO''Logo:');
define('ADMIN_CATEGORY_ROOT''Root');
define('ADMIN_CATEGORY_DESC''Description');
define('ADMIN_PRODUCT_TITLE''Products');
define('ADMIN_PRODUCT_NEW''Create new product');
define('ADMIN_PRODUCT_CODE''Product code');
define('ADMIN_PRODUCT_NAME''Product name');
define('ADMIN_PRODUCT_RATING''Rating');
define('ADMIN_PRODUCT_PRICE''Price');
define('ADMIN_PRODUCT_LISTPRICE''List price');
define('ADMIN_PRODUCT_INSTOCK''In stock');
define('ADMIN_PRODUCT_PICTURE''Picture');
define('ADMIN_PRODUCT_THUMBNAIL''Thumbnail');
define('ADMIN_PRODUCT_BIGPICTURE''Enlarged picture');
define('ADMIN_PRODUCT_DESC''Description');
define('ADMIN_PRODUCT_BRIEF_DESC''Brief description');
define('ADMIN_PRODUCT_SOLD''Sold');
define('CUSTOMER_EMAIL''Email:');
define('CUSTOMER_FIRST_NAME''First name:');
define('CUSTOMER_LAST_NAME''Last name:');
define('CUSTOMER_COUNTRY''Country:');
define('CUSTOMER_ZIP''Zip code:');
define('CUSTOMER_STATE''State:');
define('CUSTOMER_CITY''City:');
define('CUSTOMER_ADDRESS''Address:');
define('CUSTOMER_PHONE_NUMBER''Phone number:');

define('ADMIN_PICTURE_NOT_UPLOADED''(picture not uploaded)');


//errors

define('ERROR_FAILED_TO_UPLOAD_FILE''<b><font color=red>Failed to upload file to the server. Make sure server allows you to write files on it</font></b>');
define('ERROR_CANT_FIND_REQUIRED_PAGE''Sorry, but requested page was not found of the server');
define('ERROR_INPUT_EMAIL''Please input your email address');
define('ERROR_INPUT_NAME''Please input your name');
define('ERROR_INPUT_COUNTRY''Please input country');
define('ERROR_INPUT_CITY''Please input city');
define('ERROR_INPUT_ZIP''Please input ZIP');
define('ERROR_INPUT_STATE''Please input state');
define('ERROR_FILL_FORM''Please fill in all fields in the form');
define('ERROR_WRONG_PASSWORD''Invalid password specified');
define('ERROR_PASS_CONFIRMATION''Invalid password confirmation');

//questions

define('QUESTION_DELETE_PICTURE''Delete picture?');
define('QUESTION_DELETE_CONFIRMATION''Delete?');

//emails
define('EMAIL_ADMIN_ORDER_NOTIFICATION_SUBJECT''New order!');
define('EMAIL_CUSTOMER_ORDER_NOTIFICATION_SUBJECT''Your order');
define('EMAIL_MESSAGE_PARAMETERS''Content-Type: text/plain; charset="'.DEFAULT_CHARSET.'"');
define('EMAIL_HELLO''Hello');
define('EMAIL_SINCERELY''Sincerely');
define('EMAIL_THANK_YOU_FOR_SHOPPING_AT''Thank you for shopping at');
define('EMAIL_ORDER_WILL_BE_SHIPPED_TO''Your order will be shipped to');
define('EMAIL_OUR_MANAGER_WILL_CONTACT_YOU''We will contact you as soon as possible.');

//warnings

define('WARNING_DELETE_INSTALL_PHP''File <b>install.php</b> exists in the Shop-Script root folder. Please delete it.<br>');
define('WARNING_DELETE_FORGOTPW_PHP''File <b>forgot_password.php</b> exists in the Shop-Script root folder. Please delete it.<br>');
define('WARNING_WRONG_CHMOD''Wrong file access permissions for folder cfg, its content and folders products_pictures, templates_c (or these folers does not exist). Please set (enable) write permissions for these folders and files to make them rewritable.');

//currencies

define('ADMIN_CURRENCY''Currency');
define('ADMIN_CURRENCY_ID_LEFT''Currency left symbol<br>(shown left to the price value)');
define('ADMIN_CURRENCY_ID_RIGHT''Currency right symbol<br>(shown right to the price value)');
define('ADMIN_CURRENCY_ISO3''Currency ISO3 code<br>(e.g. USD, EUR, GBP)');

?>
and the error:
PHP Code:
Warningfopen(...../paragraph.txt) [function.fopen]: failed to open streamNo such file or directory in /home/content/v/s/n/vsnu404/html/Website_Files/languages/english.php on line 3

Warning
filesize() [function.filesize]: stat failed for ...../paragraph.txt in /home/content/v/s/n/vsnu404/html/Website_Files/languages/english.php on line 4

Warning
fread(): supplied argument is not a valid stream resource in /home/content/v/s/n/vsnu404/html/Website_Files/languages/english.php on line 4

Warning
fclose(): supplied argument is not a valid stream resource in /home/content/v/s/n/vsnu404/html/Website_Files/languages/english.php on line 5 
how i fix it? Its Looking For A File Inside Of A File In This Case Paragraph.txt In English.php. PLZ HELP!
__________________
Cop : Ok, Say Your ABC's.
Me : A B C D E G 7... Oh Wait... I Mean,
Cop : That's It, Were Takin' Ya In!
XP On CD is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-24-2008, 12:46 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 935
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Warning!!!

Okay, so does paragraph.txt exist? haha sorry but you didn't mention. Are you sure it's in the right directory?

I don't know exactly what is causing the problem (because everything looks okay).

Cheers,
Jamey
__________________

Help fight cancer. < I just started =]
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-24-2008, 01:59 PM   #3 (permalink)
Registered User
 
XP On CD's Avatar
 
Join Date: Jul 2007
Location: My Computer Screen
Posts: 36
OS: XP SP3 Home

My System

Send a message via ICQ to XP On CD Send a message via AIM to XP On CD Send a message via MSN to XP On CD Send a message via Yahoo to XP On CD Send a message via Skype™ to XP On CD
Re: Warning!!!

The File Exists & Is In The Same DIR. So The Prob Is Unknown. (my server has php 5.2)
__________________
Cop : Ok, Say Your ABC's.
Me : A B C D E G 7... Oh Wait... I Mean,
Cop : That's It, Were Takin' Ya In!

Last edited by XP On CD : 07-24-2008 at 02:02 PM.
XP On CD is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-24-2008, 02:15 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 935
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Warning!!!

Hmm, okay, why not try changing the mode flag to "a+"(or another "attempt to create" option) rather than "r" to see if it creates a new file anywhere (of course backup the paragraph.txt file first incase it does re-write it).

That should show whether the error is with php or the file itself.

Cheers,
Jamey
__________________

Help fight cancer. < I just started =]
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-24-2008, 02:22 PM   #5 (permalink)
Registered User
 
XP On CD's Avatar
 
Join Date: Jul 2007
Location: My Computer Screen
Posts: 36
OS: XP SP3 Home

My System

Send a message via ICQ to XP On CD Send a message via AIM to XP On CD Send a message via MSN to XP On CD Send a message via Yahoo to XP On CD Send a message via Skype™ to XP On CD
Re: Warning!!!

i got
PHP Code:
http://www.techsupportforum.com/design-forum/web-design-programming/272916-warning-new-post.html 
__________________
Cop : Ok, Say Your ABC's.
Me : A B C D E G 7... Oh Wait... I Mean,
Cop : That's It, Were Takin' Ya In!
XP On CD is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-31-2008, 07:11 AM   #6 (permalink)
Registered User
 
Join Date: Feb 2008
Posts: 241
OS: Vista


Re: Warning!!!

Is paragraph.txt CHMOD'd to 777?
Slapshot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 07:06 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82