Closed Thread
PHP coding - what did i do!
Old 02-05-2008, 03:21 PM PHP coding - what did i do!
Extreme Talker

Posts: 173
I just made a couple tiny modifications to my php language file. I think I erased a / somewhere and corrected a couple typos. I thought it was nothing but now my whole site is blank! What on earth did i do wrong? Im an html girl, this php is pretty french to me. Can anyone help? Here is the code below that I did those small modifications to.

<?php
//titles
define('HOWTOTITLE','How it works');
define('FAQTITLE','FAQs');
define('PPTITLE','Privacy Policy');
define('TOSTITLE','Terms &amp; Conditions');
define('LOGINTITLE','Log to your account');
define('SUPPORTTITLE','Get help!');
//support related
define('SUBMITNEWTICKET','Submit a new ticket. All fields are required.');
define('MESSAGE','Your message <em>(include as many details as possible)</em>');
define('SUBJECT','Subject');
define('CATEGORY','Category');
define('GENERALSUPPORT','General Support');
define('CREDITINGSUPPORT','Crediting');
define('PAYMENTSUPPORT','Payments');
define('OFFERSUPPORT','Offer Questions');
define('ORDERSUPPORT','Order Questions');
define('TICKETSLIST','Your submitted tickets');
define('LASTUPDATE','Updated on');
define('STATUS','Status');
define('TICKETCLOSED','<span style="color:red;background:none;">Closed</span>');
define('TICKETOPENED','<span style="color:green;background:none;">Opened</span>');
define('REPLY','Reply');
define('YOURREPLY','You reply');
define('LASTREPLIED',' last wrote on ');
define('OLDERREPLIESINTOPIC',' older replies in ticket');
define('USER','You');
define('ADMIN','Admin');
define('LASTREPLIEDUSER','Last replied by you');
define('LASTREPLIEDADMIN','Last replied by admin');
define('SUPPORT_ALSOOFFER','We can be reached on');
define('SUPPORT_AIM','AIM');
define('SUPPORT_MSN','MSN');
define('SUPPORT_YIM','YIM');
define('SUPPORT_GTalk','GTalk');
define('SUPPORT_Skype','Skype');
//order related
define('ORDERNOTPOSSIBLEYET','Sorry, but you still can\'t order.');
define('ORDERALREADYPLACED','Sorry, but you have already placed your order.');
define('ORDERPLACED','Thank you for placing your order.');
define('ORDERGIFT','Order your gift now!');
//reward related
define('CHOOSEOTHERGIFT','Choose another gift');
define('GIFTREQ',' referrals only!');
define('GIFTSELECTION','Our gift selection');
//offer related
define('REQUIREMENTS','Requirements: ');
define('VIEWREQUIREMENTS_LINKTITLE','View the requirements for this offer');
define('CREDITTIME','Offer credits in: ');
define('PRICE','Costs: ');
define('MONEYBACK','Moneyback Guarantee: ');
define('CREDITCARD','Credit Card Required: ');
define('FREE','FREE');
define('INSTANTCREDIT','Instantly');
define('CURRENCYSYMBOL','$');
define('YES','Yes');
define('NO','No');
define('TRYITTODAY','TRY IT TODAY!');
define('IHAVECOMPLETED','I have completed this offer');
define('MOREOFFERS','More offers');
define('MOREOFFERS_LINKTITLE','View more offers');
define('HALFCREDITOFFER','This is a half-credit offer. You need 2 of those in order to get your full credit.');
define('PREMIUMOFFER','This is a premium offer that gave you a free credited referral');
define('COMPLETESECONDOFFER','You have a credit for only one half credit offer. <a href="offer.php" title="Fill second offer to get a full credit">Click here</a> to get your second one and have a full credit.');
define('OFFERALREADYCOMPLETED','Sorry, but you have already completed an offer.');
define('OURADVERTISERS','Complete the offer below');
//registration process
define('REGISTRATIONSTEP1','Get Started Now!');
define('REGISTRATIONSTEP2','Just a step away!');
define('REGISTRATIONSTEP3','Your account has been created');
define('REGISTRATIONSTEP4','Thank you for taking the time to verify your email address.<br />If you are not forwarded to the log-in page in the next 10 seconds, please <a href="'.ROOTURL.'members/">click here</a>.');
define('PERSONALINFO','Personal Information');
define('SHIPPINGINFO','Shipping Information');
define('EMAIL','Email Address');
define('PASSWORD','Password');
define('FNAME','First Name');
define('LNAME','Last Name');
define('ADDRESS','Address <em style="font-weight:normal;font-size:10px;">(street, apt)</em>');
define('CITY','City');
define('STATE','State');
define('ZIP','ZIP Code');
define('COUNTRY','Country');
define('AGREETOS','I agree to the Terms &amp; Conditions');
define('AGREEAGE','I am at least 18 years old');
define('AGREEOWNER','I am the legal owner of this account');
define('SUBMIT_STEP1','Proceed to Step 2...');
define('SUBMIT_STEP2','Register');
define('ONEACCOUNT','One account per household.');
define('LOGIP_1','Your IP ');
define('LOGIP_2',' has been logged');
define('REFERREDBY','Referred by');
define('REGISTRATION_CONFIRMATION_TITLE','Thank you for registering!');
define('REGISTRATION_CONFIRMATION_MSG_1','<p>An activation email has been sent to:</p><p>');
define('REGISTRATION_CONFIRMATION_MSG_2','</p><p>Please check your mailbox and click on the link provided so we can verify your email address.</p>');
define('ACTIVATION_TITLE','Re-send activation email');
define('ACTIVATION_LOGIN_PAGE','<BR><BR><h1 class="dark">Never received an activation email?</h1><BR><BR><a href="'.ROOTURL.'activation.php" title="Request another activation email">Click here</a> and we will send you a new one right now.');
define('PASSWORD_RESET_TITLE','Retrieve your password');
define('PASSWORD_RESET_LOGIN_PAGE','<h1 class="dark">Forgot your password?</h1><BR><BR><a href="'.ROOTURL.'password.php" title="Instantly retrieve your password">Click here</a> and we will instantly help you retrieve your account access.');
define('PASSWORD_RESET_SENTTO_MSG_1','<p>A confirmation email has been sent to:</p><p>');
define('PASSWORD_RESET_SENTTO_MSG_2','</p><p>Please check your mailbox and click on the link provided so we can proceed with your password reset.</p>');
define('PASSWORD_RESET_SENTTO_MSG_3','<p>The new password has been sent to:</p><p>');
define('PASSWORD_RESET_SENTTO_MSG_4','</p><p>Please check your mailbox.</p>');
define('REMEMBERME','Remember me (lasts 2 weeks).');
//success messages
define('SUC_PROFILE_UPDATE','Your profile was successfully updated.');
define('SUC_COFFER_ADD','Thank you for completing the offer.');
define('SUC_COFFER_RESET','You can now try completing another offer.');
define('SUC_SUPPORT_ADD','Your ticket was successfully submitted.');
define('SUC_SUPPORT_REPLY_ADD','Your reply was successfully submitted.');
define('','');
//error messages
define('ERR_IP_BLOCKED','If you feel this is an error, please <a href="mailto:'.SITEADMINEMAIL.'?subject=My%20IP%20is%20b locked%20by%20mistake.">contact us</a>.');
define('ERR_EMAIL_INVALID','Invalid Email');
define('ERR_EMAIL_INUSE','Email already registered');
define('ERR_EMAIL_NOEXIST','This email is not registered');
define('ERR_EMAIL_ACTIVATED','Email has already been activated');
define('ERR_PASSWORD_TOOSHORT','Must be over 6 characters');
define('ERR_PASSWORD_INVALID','Password contains invalid characters');
define('ERR_EMPTY','Required. Can\'t leave blank.');
define('ERR_NAME_INVALID','You entered an invalid name');
define('ERR_ADDRESS_INVALID','You entered an invalid address');
define('ERR_CITY_INVALID','You entered an invalid city');
define('ERR_STATE_LIST_INVALID','You must select a state');
define('ERR_STATE_FIELD_INVALID','You entered an invalid state');
define('ERR_ZIP_INVALID','You entered an invalid Zip code');
define('ERR_COUNTRY_INVALID','You must select a country');
define('ERR_AGREE_TOS','You must agree to our Terms &amp; Conditions');
define('ERR_AGREE_AGE','You must agree to our Terms &amp; Conditions');
define('ERR_AGREE_OWNER','You must confirm ownership of account');
define('ERR_COFFER_DELETE','Why reset a credit offer?');
define('ERR_SUPPORT_ALLFIELDSREQUIRED','Sorry, couldn\'t submit your ticket. All fields are required.');
define('ERR_LINK_REQUIRED','Sorry, couldn't submit your report. The referral link is required.');
define('ERR_REPORT_TITLE','Error! ');
define('ERR_REPORT_MSG_1','The site encountered a problem. Please try again or <a href="mailto:'.SITEADMINEMAIL.'?subject=Error ');
define('ERR_REPORT_MSG_2',': please fix.">let us know</a>.');
define('ERR_REPORT_MSG_3','<br />Also, please include the following: ');
//forms
define('LOGINBUTTON','Login to my account');
define('ACTIVATIONBUTTON','Send activation email');
define('RESETPASSBUTTON','Submit');
define('LOGINBUTTON','Login to my account');
define('SUBMITTICKET','Submit your ticket');
define('SUBMITREPLY','Submit your reply');
define('SAVESCRATCHPAD','Save to notepad');
define('CHANGEGIFT','Change my gift');
//member status page
define('COFFERSTATUS','Your completed offer status');
define('SIGNUPTO','Your sign-up to ');
define('COFFERSTATUSLONG_DECLINED',' was declined by our advertiser. Please contact us to reset your account status so the system allows you to fill another offer.');
define('COFFERSTATUSLONG_APPROVED_1','Congratulati ons! Your sign-up to ');
define('COFFERSTATUSLONG_APPROVED_2',' was approved by our advertiser.');
define('COFFERSTATUSLONG_PENDING_1','Thank you for signing up to ');
define('COFFERSTATUSLONG_PENDING_2','. We will update your status as soon as we hear back from our advertiser.');
define('COFFERSTATUSLONG_DELETE_1','If you have not signed up to this offer, please ');
define('COFFERSTATUSLONG_DELETE_2',' to automatically reset your status and permit you to choose an offer.');
define('COFFERSTATUSLONG_DELETE_LINKTITLE','Reset your completed offer status');
define('MANUALCREDITAWARDED','Congratulations! You were give a FREE credit!');
define('SOMEADVERTISERS','Some of our advertisers are:');
define('REFERRALLINK','Your referral link');
define('REFERRALSTATUS','Your referrals\' status');
define('NOOFFERFILLED','No offer filled yet');
define('OFFERDECLINED','Offer was declined');
define('OFFERAPPROVED','Offer filled and approved');
define('OFFERPENDING','Offer filled and pending approval');
define('PREMIUMOFFERREFERRAL','PREMIERE OFFER COMPLETED (Credits as a referral)');
define('OFFERAPPROVEDHALF','Half-credit offer was approved');
define('OFFERAPPROVEDFULL','2 half-credit offers approved');
define('REFERRALBANNED','Suspended account');
define('PLACEORDER','You can now order your gift! Click here to proceed');
define('PLACEORDER_LINKTITLE','Place your order now');
define('ORDERDENIED_1','Your order has been denied. Please ');
define('ORDERDENIED_2','if you wish to have more information.');
define('ORDERRECEIVED_1','Your order has been received. Please allow us 5 business days to review it.');
define('ORDERRECEIVED_2','Your account has been verified. We are now checking our different vendors for your item's availability.');
define('ORDERRECEIVED_3','A vendor has been contacted concerning your gift. Order should be processed soon!');
define('ORDERRECEIVED_4','Your order is being processed by our vendor. Just a couple more days and you will receive your FREE gift!');
define('ORDERRECEIVED_5','Order is being shipped by our vendor.');
define('ORDERRECEIVED_6','Your gift has been shipped. It all depends on the courier now, but you should get it soon!');
define('ORDERRECEIVED_7','Congratulations! You received your FREE gift! Please send us a testimonial or a thank you picture and we will post it in the proof gallery.');
//profile edit page
define('SELECTEDGIFT','Your gift');
define('EDITPROFILE','Update your profile');
define('AGREEUPDATE','All the information above is correct');
//login and Password errors
define('ERR_ACCESSDENIED','Access denied');
define('ERR_NOPASS','Password is required');
define('ERR_WRONGPASS','Incorrect email/password combination');
define('ERR_WRONGLEVEL','Wrong user privileges');
define('ERR_NOUSER','Username is required');
define('ERR_WRONGUSER','Incorrect email/password combination');
//general
define('IRREVERSIBLEALERT','Please confirm you want to proceed. The action you are taking is irreversible.');
define('CLICKHERE','click here');
define('CONTACTUS','contact us');
define('SCRATCHPADDEFAULT','This is your notepad. Click on the text to edit it at anytime.');
define('SCRATCHPAD','Notepad');
//referral spam
define('RSPAM_SUC_THANKYOU','Thank you! We will be looking into it and taking immediate action.');
define('RSPAM_TITLE','We take spam very seriously');
define('RSPAM_LINK','Spammer\'s link');
define('RSPAM_MESSAGE','Your message');
define('RSPAM_SUBMITBUTTON','Report it');
define('RSPAMLINK','Report Spam');
//multi-countries
define('AUSTRALIA','Australia');
define('BELGIUM','Belgium');
define('CANADA','Canada');
define('DENMARK','Denmark');
define('FINLAND','Finland');
define('FRANCE','France');
define('GERMANY','Germany');
define('GREECE','Greece');
define('IRELAND','Ireland');
define('ITALY','Italy');
define('LIECHTENSTEIN','Liechtenstein');
define('LUXEMBOURG','Luxembourg');
define('MONACO','Monaco');
define('NETHERLANDS','Netherlands');
define('NEWZEALAND','New Zealand');
define('NORWAY','Norway');
define('PORTUGAL','Portugal');
define('SPAIN','Spain');
define('SWEDEN','Sweden');
define('UNITEDKINGDOM','United Kingdom');
define('USA','United States');
?>
__________________
Want a Free Designer Handbag?
carrielulu is offline
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-06-2008, 12:37 AM Re: PHP coding - what did i do!
Extreme Talker

Posts: 214
Location: United States
I'm guessing that you deleted a \ on two lines. The \ is needed to escape the quote or otherwise PHP will think your string ends at the first quote and that would be a syntax error.

PHP Code:
define('ERR_LINK_REQUIRED','Sorry, couldn't submit your reportThe referral link is required.');

define('
ORDERRECEIVED_2','Your account has been verifiedWe are now checking our different vendors for your item's availability.'); 
It should be:
PHP Code:
define('ERR_LINK_REQUIRED','Sorry, couldn\'t submit your report. The referral link is required.');

define('ORDERRECEIVED_2','Your account has been verified. We are now checking our different vendors for your item\'s availability.'); 
They are lines 133 and 175 in my text editor.

A debugging tip for the future would be to put error_reporting(E_ALL); at the top of your PHP script, and then, instead of a blank screen, it would show the syntax errors. It is very important to remove this as soon as you are done debugging though.
frost is offline
View Public Profile
 
Old 02-06-2008, 04:41 AM Re: PHP coding - what did i do!
chrishirst's Avatar
Super Moderator

Posts: 11,452
Location: Blackpool. UK
cross post with http://www.webmaster-talk.com/php-fo...-did-i-do.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to PHP coding - what did i do!
 

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14661 seconds with 13 queries