Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Help! Error in admin/index.php
Old 05-04-2004, 02:10 AM   #1
newagekat
Jill of all trade
 
newagekat is offline
Join Date: May 2004
Location: BC, Canada
Posts: 12
Send a message via AIM to newagekat
Default Help! Error in admin/index.php

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

I'm starting to get bleary eyed
 

Old 05-04-2004, 03:54 AM   #2
evavega
Oh Yeah?!
 
evavega's Avatar
 
evavega is offline
Join Date: Apr 2004
Location: Georgia USA
Posts: 26
Send a message via ICQ to evavega Send a message via AIM to evavega Send a message via Yahoo to evavega
Default

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
 

Old 05-04-2004, 10:47 AM   #3
newagekat
Jill of all trade
 
newagekat is offline
Join Date: May 2004
Location: BC, Canada
Posts: 12
Send a message via AIM to newagekat
Default

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
 

Old 05-04-2004, 12:35 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Did the script work correctly without any modifications?

Quote:
Originally Posted by newagekat
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

I'm starting to get bleary eyed
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-04-2004, 06:49 PM   #5
newagekat
Jill of all trade
 
newagekat is offline
Join Date: May 2004
Location: BC, Canada
Posts: 12
Send a message via AIM to newagekat
Default

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!
 

Old 05-04-2004, 07:01 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

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?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-04-2004, 09:00 PM   #7
newagekat
Jill of all trade
 
newagekat is offline
Join Date: May 2004
Location: BC, Canada
Posts: 12
Send a message via AIM to newagekat
Default

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
 

Old 05-05-2004, 10:14 AM   #8
evavega
Oh Yeah?!
 
evavega's Avatar
 
evavega is offline
Join Date: Apr 2004
Location: Georgia USA
Posts: 26
Send a message via ICQ to evavega Send a message via AIM to evavega Send a message via Yahoo to evavega
Default

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
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump



All times are GMT -4. The time now is 10:21 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |