PDA

View Full Version : Help! Error in admin/index.php


newagekat
05-04-2004, 02:10 AM
Hello:

I've been tweaking the color values in the admin/index.php file and when i uploaded I got the error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kwhittam/public_html/charter/calendar/admin/index.php on line 1

Parse error: parse error, expecting `','' or `';'' in /home/kwhittam/public_html/charter/calendar/admin/index.php on line 1

I looked for the error on the respective lines, but i can't find it. Can any see the problem? the file is at:

error page here (http://www.charter.publiced.ca/calendar/admin/index.php)

I'm starting to get bleary eyed :ugh:

evavega
05-04-2004, 03:54 AM
Your error has something to do with the integrity of the file. The server might possibly be having trouble reading the file.

Try editing your original file and upload it in ascii, not binary.

Also, the identifiers for "beginning of file", "end of file" and "ends of lines" are different on Windows and Mac and Linux so be sure to use a plain text editor and not a word processor. Try VIM or Edit Pad for Windows, also Dreamweaver has a good plain text editor built in. This way you are not adding any obscure characters that might mess up the server's ability to read the file properly.

Hope this helps.
Chassie

newagekat
05-04-2004, 10:47 AM
thanks for the response. Chassie. I use a Mac and BBEdit to code. I have never had a problem, before. Is it safe for me to copy part of the virgin copy onto the current file and re-upload? I know the hosting server is Linux.

thanks again

Brian
05-04-2004, 12:35 PM
Did the script work correctly without any modifications?

Hello:

I've been tweaking the color values in the admin/index.php file and when i uploaded I got the error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kwhittam/public_html/charter/calendar/admin/index.php on line 1

Parse error: parse error, expecting `','' or `';'' in /home/kwhittam/public_html/charter/calendar/admin/index.php on line 1

I looked for the error on the respective lines, but i can't find it. Can any see the problem? the file is at:

error page here (http://www.charter.publiced.ca/calendar/admin/index.php)

I'm starting to get bleary eyed :ugh:

newagekat
05-04-2004, 06:49 PM
Brian:

I tried uploading the file in ASCII mode, but to no avail. Still showing same error message. I need this done today, before i call the client. HELP! :eek:

Brian
05-04-2004, 07:01 PM
I have seen a similar problem before where the FTP program was converting returns to another character and corrupting the upload.

Can you PM me FTP access and let me upload the file and see if it works?

newagekat
05-04-2004, 09:00 PM
Brian:

Thanks for fixing the problem. I will ensure that I upload php files in ASCII mode, even if Transmit does detect it automatically.

Back to color tweaking ;)

evavega
05-05-2004, 10:14 AM
Hello newAgeKat,

Hopefully, your file transfer program will let you specify those file extensions that need to be transported in ASCII. That way you won't have to go through this frustration again.

Try looking in your settings for Auto-Detect within your FTP client. It is possible that it hasn't been configured to recognize .php files to be transported in ASCII format.

Maybe it's worth a look.

Best regards,
Chassie