Guest Posted November 3, 2005 Posted November 3, 2005 For some reason when I go to change the text on my index.php it always gives me a line 13 error. I am using the File Manager option under Tools in the Administration part for my website. It doesn't even really matter if I change anything. If I just open the index.php page up and close it without changing a thing, it gives me an error. The only way I can change any text on the page is I do it in notepad and copy the text over. It's a real pain in the ass. Does anybody know why this is doing this? Also, I keep getting this error on my mainpage: Warning: I am able to write to the configuration file: /home/xvolcom1/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I don't really know how to change this. Can soembody please help?
Guest Posted November 3, 2005 Posted November 3, 2005 This is the code I have in my text in index.php: define('TEXT_MAIN', 'Welcome to Performance Junkies. We offer a full line of Performance Parts and Accessories. We are currently under construction and it may take some time for us to list our large inventory. If there is something you can't find, please email us at [email protected].'); This is the error they give me: Parse error: parse error, unexpected T_STRING in /home/xvolcom1/public_html/includes/languages/english/index.php on line 13 Can somebody please tell me what is wrong here?
GraphicsGuy Posted November 3, 2005 Posted November 3, 2005 On that parse error, it is probably due to the apostrophe in "can't". The apostrophe needs to be "escaped" by placing a backslash immediately before it. If by some chance that isn't successful you can do it using the character code like this can& #039;t (except no space between the & and #, I had to put the space in or the browser would have just replaced it with the apostrophe). On the permissions issue, you can use your ftp program to change the permissions on those files to either 644 or 444 (depends on the server configuration). To change permissions in most ftp programs, right click on the file name and choose either "properties" or "permissions" (depends on the ftp program) and it will present you with a dialog to set the permissions. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.