Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/colin/public
Old 06-03-2005, 05:17 PM Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/colin/public
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/colin/public_html/languages/english.lang on line 113
Page that has errors
PHP Code:
<?
// Welcome Message

define("WELCOME_MESSAGE""<b>TorrentTrader v1.0 BETA has installed successfully!</b><br /><br />You should now edit index.php to add your own welcome message. You can edit the tracker's configuration via the variables in the functions.php file. For further assistance go to <a href=http://www.torrenttrader.com>www.torrenttrader.com</a>.");

// Headings
define("WELCOME_HEADING""Welcome to $SITENAME");
define("BROWSE_TORRENTS""Browse Torrents");
define("ONLINE_USERS""Online Users");
define("TRACKER_STATISTICS""Statistics");
define("UPLOAD_RULES""Upload Rules");
define("UPLOAD""Upload A Torrent");
define("SEARCHS""Search Torrents");
define("SEARCH_RESULTS""Search Results");
define("YOUR_PROFILE""Your Profile");
define("STATS_TITLE""Stats");
define("TOP_TEN_DONORS""Top 10 Donors");
define("TOP_TEN_UPLOADERS""Top 10 Uploaders");
define("TOP_TEN_DOWNLOADERS""Top 10 Downloaders");
define("TOP_TEN_SHARERS""Top 10 Best Sharers <font class=small>(with minimum 100 MB downloaded)</font>");
define("TOP_TEN_WORSET_SHARERS""Top 10 Worst Sharers <font class=small>(with minimum 100 MB downloaded)</font>");
define("TOP_TEN_MOST_ACTIVE_TORRENTS""Top 10 Most Active Torrents");
define("TOP_TEN_BEST_SEEDED_TORRENTS""Top 10 Best Seeded Torrents <font class=small>(with minimum 5 seeders)</font>");
define("TOP_TEN_WOREST_SEEDED_TORRENTS""Top 10 Worst Seeded Torrents <font class=small>(with minimum 5 leechers, excluding unsnatched torrents)</font>");
define("TOP_TEN_COUNTRYS""Top 10 Countries");
define("ACCOUNT_USER_SIGNUP""Signup Successfull");
define("""");



// Phrases
define("ACTIVE_USERS""users are currently online. Welcome to our newest member,");
define("TOTAL_USERS""Total Registered Users");
define("SEED_RATIO""Current Seeder/Leecher Ratio (%) = ");
define("NO_HTML""(HTML is not allowed. <a href=extras-faq.php>Click here</a> for info on available tags.)");
define("MAX_SIZE_T""The maximum .torrent file size is $max_torrent_size bytes.");
define("MAX_SIZE_N""The maximum NFO file size is $max_nfo_size bytes.");
define("MAX_SIZE_I""The maximum image file size is $max_image_size bytes.");
define("INC_DEAD""including dead .torrents");
define("SHOW_ALL""Show all of");
define("ORL""- or -");

// Words
define("TRACKING""Tracking");
define("SEEDS""Seeders");
define("LEECH""Leechers");
define("TORRENTS""Torrents");
define("PEERS""Peers");
define("WITH""with");
define("AND""and");
define("IN""in");
define("SEARCH""Search");
define("USER""User");
define("PASS""Pass");
define("USERNAME""Username");
define("PASSWORD""Password");
define("ANNOUNCE""Announce URL");
define("TORRENT""Torrent File");
define("NFO""NFO File");
define("NFO1""NFO");
define("FOR1""for");
define("CLIENT""Client");
define("AGE""Age");
define("GENDER""Gender");
define("EMAIL""Email");
define("TNAME""Torrent Name");
define("TDESC""Description");
define("TTYPE""Category");
define("RANK""Rank");
define("REGISTERED""Registered");
define("COUNTRY""Country");
define("LAST_ACCESS""Last Visited");
define("FROM""From");
define("AT""at");
define("WHEN_YOU""When you");
define("UPLOADED""Uploaded");
define("DOWNLOADED""Downloaded");
define("COMMENTS""Comments");
define("TORRENT""Torrent");
define("RATINGS""Ratings");
define("NAME""Name");
define("JOIN_DATE""Join&nbsp;date");
define("LAST_SEEN""Last&nbsp;seen");
define("ADDRESS""Address");
define("SHARE_RATIO""Share Ratio");
define("DONATED""Donated");
define("AVATAR""Avatar");
define("WORD_CLASS""Class");
define("TORRENT_COMMENTS""Torrent&nbsp;comments");
define("UPLOADED_TORRENTS""Uploaded&nbsp;torrents");
define("CURRENTLY_SEEDING""Currently seeding");
define("CURRENTLY_LEECHING""Currently Leeching");
define("EDIT_USER""Edit_User");
define("TITLE""Title");
define("AVATAR_URL""Avatar&nbsp;URL");
define("DONATED_TYPE""US$&nbsp;Donated");
define("MOD_COMMENT""Mod Comment");
define("AMOUNT""Amount");
define("ENABLED""Enabled");
define("DISABLED""Disabled");
define("BAN_USER""Ban User");
define("WHAT""What");
define("BAN_IP_ADDRESS""Ban IP address");
define("BAN_SUBNET""Ban subnet (use if IP address is not enough to keep him/her out)");
define("VIEW_BANS""View Bans");
define("WHY""Why");
define("MESSAGE""Message");
define("RECEVIER""Recevier");
define("FAILED""Failed");
define("WEIRD_THING_WITH_YOUR_ID""Weird things going on with your ID!");
define("LOCATION""Location");
define("REGISTERED_EMAIL""Registered email");
define("DO_IT""Do It!");
define("USER_CP""User CP");
define("YOUR_SETTINGS""Your Settings");
define("MALE""Male");
define("FEMALE""Female");
define("THEME""Theme");
define("EMAIL_ADDRESS""Email Address");
define("CHANGE_YOUR_PASS""Change your Password");
define("CURRENT_PASSWORD""Current Password");
define("REPEAT""Repeat");
define("NEW_PASSWORD""New Password");
define("ALL""ALL");
define("NEXT""Next");
define("PREV""Prev");
define("OPS""Oops");
define("PROPERLY""properly");
define("LOGGED_IN""Logged In");
define("UPDATE""Update");
define("KEEP""Keep");
define("CURRENT""Current");
define("FILE""File");
define("DESCRIPTION""Description");
define("TYPE""Type");
define("VISIBLE""Visible");
define("ON""on");
define("PAGE""page");
define("MAIN""main");
define("BANNED""Banned");
define("REVERT""Revert&nbsp;changes");
define("EDIT_IT""Edit&nbsp;it!");
define("DELETE_TORRENT""Delete .torrent");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");




// Navigation
define("HOME""Home");
define("LOGIN""Login");
define("SIGNUP""Signup");
define("LOST_PASS""Lost Pass");
define("DELETE_ACCOUNT""Delete Account");
define("SEARCH""Search");
define("UPLOAD""Upload");
define("MEMBERS""Member List");
define("FAQ""FAQ");
define("LOGOUT""Logout");
define("Account""Your Account");
define("STATS""Advanced Statistics");
define("ADMIN_CP""Admin CP");

//PHPTRACKER MENU "JAVA"
define("YOUR_ACCOUNT""edit your uploads and account settings");
define("HOME_JAVA""return to the homepage");
define("JAVA_LOGIN""login to your account");
define("SIGNUP_FREE_ACCOUNT""signup for a FREE account");
define("JAVA_SEARCH""search for torrents by keywords or category");
define("JAVA_UPLOAD""upload a new .torrent");
define("JAVA_MEMBERS""find users in the member list");
define("JAVA_FAQ""site information and FAQ");
define("JAVA_LOGOUT""logout of your account");
define("""");

// Info Tips
define("COOKIES""Cookies MUST be enabled for you to login.");

// Errors
define("NOTHING_FOUND""No Torrents Found");
define("NO_UPLOADS""No .torrents have been uploaded yet.");
define("NO_RESULTS""No .torrents were found based on your search criteria.");
define("NO_USERS""There have been no active users in the last 15 minutes.");
define("USERNAME_NOT_FOUND""Username not found");
define("PM_REJECTED""PM Rejected");
define("YOU_CANT_REPLY_TO_ID""You can't reply to this ID!");
define("SORRY_MEMBERS_ONLY""Sorry this page is only for members");
define("USERNAME_WRONG""Username Incorrect");
define("PASSWORD_WRONG""Password Incorrect");
define("ACCOUNT_DISABLED""This account has been disabled by an administrator");
define("ACCESS_DENIED""Access Denied");
define("NOT_VAILD_EMAIL""That doesn't look like a valid email address");
define("EMAIL_NOT_FOUND""The email address <b>$email</b> was not found in the database.");
define("THATS_NOT_YOUR_ORIGNAL_PASS""That is not your original password!");
define("PASS_TO_SHORT""Sorry, your password is too short (min 6 chars)");
define("PASSWORDS_NOT_MATCH""The passwords are not identical. Please try again.");
define("EMAIL_INVALID""This email address is invalid.");
define("FILE_NOT_FOUND""File not found");
define("NO_FILE_WITH_THAT_ID""No file has been found with that ID!");
define("ID_FOUND_BUT_NO_TORRENT""The ID has been found on the Database, but the torrent has gone!");
define("ID_AND_TORRENT_FOUND_BUT_NOT_READABLE""The ID and torrent were found, but the torrent is NOT readable!");
define("ID_NOT_FOUND""ID not found");
define("TELL_ME_THE_ID""You can't download, if you don't tell me what you want!");
define("TASK_NOT_FOUND""This task is not found");
define("REDIRECTING_YOU""Redirecting you to");
define("ACCOUNT_ALREADY_CONFIRMED""Account already confirmed");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");



//Account
define("ACCOUNT_USER""User");
define("ACCOUNT_RANK""Rank");
define("ACCOUNT_YOU_HAVE_UPLOADED""You have Uploaded");
define("ACCOUNT_JOINED""Joined");
define("ACCOUNT_AND_DOWNLOADED""And Downloaded");
define("ACCOUNT_ADJUST_SETTINGS""Click here to adjust your settings");
define("ACCOUNT_YOUR_MESSAGES""Your messages");
define("ACCOUNT_MESSAGES""Messages");
define("ACCOUNT_YOU_HAVE""You Have");
define("ACCOUNT_DELETE""Delete");
define("ACCOUNT_REPLY""Reply");
define("ACCOUNT_PM_SETTINGS""PM Settings");
define("ACCOUNT_FIND_USER""Find a User");
define("ACCOUNT_YOUR_TORRENTS""Your Torrents");
define("ACCOUNT_NEW""New!");
define("ACCOUNT_SEND_MSG""Send a Message");
define("ACCOUNT_NO_UPLOADS_FOUND""NO UPLOADS FOUND");
define("ACCOUNT_A_TORRENT_FILE""a .torrent file, its details will be displayed here");
define("ACCOUNT_CONFIRM_SENT_TO_ADDY""A confirmation email has been sent to the address you specified");
define("ACCOUNT_CONFIRM_SENT_TO_ADDY_REST""<br/ ><br/ >You need to read and respond to this email before you can use your account.<br/ >If you don't do this, the new account will be deleted automatically after a few days.");
define("ACCOUNT_ALREADY_CONFIRMED""This user account has already been confirmed. You can proceed to <a href=\"login.php\">log in</a> with it.</p>");
define("ACCOUNT_ACTIVATED""<p>Your account has been activated!<br />You have been automatically logged in. You can now continue to the");
define("ACCOUNT_ACTIVATED_REST""<b>main page</b></a> and start using your account.</p>");
define("ACCOUNT_BEFOR_USING""<p>Before you start using ");
define("ACCOUNT_BEFOR_USING_REST""we urge you to read the <a href=\"extras-faq.php\"><b>FAQ</b></a>.</p>");
define("ACCOUNT_SIGNUP_CONFIRMATION""Signup confirmation");
define("ACCOUNT_SUCCESS_CONFIRMED""Account successfully confirmed!");
define("ACCOUNT_ACTIVATED""<p>Your account has been activated!<br />However, it appears that you could not be logged in automatically.<br />A possible reason is that you disabled cookies in your browser. You have to enable cookies to use your account.<br />Please do that and then <a href=\"login.php\">log in</a> and try again.</p>");
define("ACCOUNT_SIGNUP_SUCCESS""Signup successful!");
define("ACCOUNT_USER_SIGNUP""User signup");
define("ACCOUNT_USE_URL_BELOW_VIEW_MSG""You can use the URL below to view the message (you may have to login).");
define("ACCOUNT_USE_URL_BELOW_VIEW_MSG""You have received a PM from");
define("USE_FORM_FOR_ACCOUNT_DETAILS""Use the form below to have your account details <BR /> (with a new password) mailed back to you.");
define("ACCOUNT_NOTIFY_WHEN_TORRENT_UPLOADED_IN""Notify me when a torrent is uploaded in");
define("ACCOUNT_PM_NOTIFY_ME""Notify me when I have received a PM");
define("ACCOUNT_PRIVACY_LV""Privacy level");
define("ACCOUNT_EMAIL_NOTIFICATION""E-mail Notification");
define("WIDTH_SHOULD_BE""Width should be 150 pixels (will be resized if necessary)");
define("REPLY_TO_CONFIRM_EMAIL""You will need to reply to the confirmation email");
define("""");

//Message
define("MESSAGE_SENT""Message Sent");
define("MESSAGE_SENT_SUCCESS""Message was sent successfully!");
define("DELETE_MSG_REPLY""Delete message you are replying to");
define("SEND_MESSAGE""Send a Message");
define("ACCESS_DENIED""Access Denied");
define("FILE_NOT_YOURS""That file is not yours!");
define("SEND_MSG""Send Message");

//Themes




//Torrent Files
define("WHERE_IS_ID_NUM""Where is the ID Number?");
define("EDIT_TORRENT""Edit Torrent");
define("CANT_EDIT_TORRENT""Can't edit this torrent""<p>You're not the rightful owner, or you're not");
define("HTML_NOT_ALLOWED""(HTML is not allowed. <a href=tags.php>Click here</a> for information on available tags.");
define("NOTE_TORRENT_VISIBLE""<b>Note:</b><br /> that the torrent will automatically become visible when there's a seeder, and will become automatically invisible (dead) when there has been no seeder for a while. Use this switch to speed the process up manually. Also note that invisible (dead) torrents can still be viewed or searched for, it's just not the default.");
define("REASON_FOR_DELETE""Reason for deletion:");
define("DELETE_IT""Delete&nbsp;it!");
define("NFO_NOT_FOUND""NFO Not Found");
define("THIS_IS_NOT_A_VAILD_ID_OR_NOT_LOGGED_IN""This is not a valid ID or you haven't got access to this page.");
define("ID_OR_NFO_NOT_FOUND""The ID/NFO-File couldn't be found in the database");
define("FOR_BEST_RESULTS""For best visual result, install the");
define("MS_FONT""MS Linedraw</a> font!");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");
define("""");




?>
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 06-03-2005, 08:16 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
PHP Code:
define("CANT_EDIT_TORRENT""Can't edit this torrent""<p>You're not the rightful owner, or you're not"); 
You have a third argument as a string. Take it out and I think that will fix your problem. Don't know why it's on line 113...

Anyway, why do you have a bunch of empty define("","");?
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 06-03-2005, 10:43 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
thanks i'll give that a go
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/colin/public
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.55589 seconds with 12 queries