Erroneous leading '\' in GLOBALS.php [message #900] |
Thu, 07 March 2002 04:18 |
pony
Messages: 3 Registered: March 2002
Karma: 0
|
Junior Member |
|
|
Hi,
I encountered pages of warnings of "Warning: Unexpected character in input: '\' (ASCII=92) state=1 in GLOBALS.php on line ##" in my admin login page after I installed FUDforum on my Red Hat 7.1. I've tested with forum-v1.2.1.tar.gz and forum-v1.2.2.tar.gz, they both have the same problem.
After investigating the GLOBALS.php, I found out there are many lines starting with a leading '\'. I guess it may be caused by different editors' tab width on different OSs. After removing those leading '\'s, everything works fine.
Cheers Pony
|
|
|
Re: Erroneous leading '\' in GLOBALS.php [message #901 is a reply to message #900] |
Thu, 07 March 2002 06:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
pony wrote on Wed, 06 March 2002 11:18 PM | Hi,
I encountered pages of warnings of "Warning: Unexpected character in input: '\' (ASCII=92) state=1 in GLOBALS.php on line ##" in my admin login page after I installed FUDforum on my Red Hat 7.1. I've tested with forum-v1.2.1.tar.gz and forum-v1.2.2.tar.gz, they both have the same problem.
After investigating the GLOBALS.php, I found out there are many lines starting with a leading '\'. I guess it may be caused by different editors' tab width on different OSs. After removing those leading '\'s, everything works fine.
Cheers Pony
|
Does you php have magic_quotes_gpc enabled to disabled?
FUDforum Core Developer
|
|
|
|
Re: Erroneous leading '\' in GLOBALS.php [message #907 is a reply to message #906] |
Thu, 07 March 2002 16:28 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
pony wrote on Thu, 07 March 2002 11:25 AM | You are right. My ISP has that option turned off. Addtionally, the ISP only supports .phtml and .php3 suffixes. As the result, the page loading is extremely slow and the HOME link doesn't work.
Any suggestions except changing the ISP?
Thanks! Pony
|
Using .htaccess make apache parse .php files as .php3
Otherwise you gotta write a shell script to rename .php files to .php3 and then run a script to change the reference names.
For example:
rename .php files to .php3 and the do:
perl -p -i -e 's/\.php/\.php3/g' *.php
FUDforum Core Developer
|
|
|
|