hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Warning: Unexpected character in input: '\' (ASCII=92) HELP

Forum Jump

Warning: Unexpected character in input: '\' (ASCII=92) HELP

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
WHT Addict
Join Date: Aug 2004
Posts: 107

Warning: Unexpected character in input: '\' (ASCII=92) HELP

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

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

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

Parse error: syntax error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxxxxx/public_html/index.php on line 2

i have no clue what went wrong.. what did i do...can anyone help me..
my site is im getting this error on my front page. the index.php ...


Last edited by haleyhosting_com; 08-04-2007 at 03:15 AM.

Sponsored Links
Join Date: Aug 2005
Location: Vienna, Austria
Posts: 17
HowTo PHP - avoid the slashes problem

maybe somewhere in your database data are slashes ' ?

If you move from one server to another the PHP Version and php.ini settings can differ from the old one.

I hope the following article can give you ideas how to master the magic quotes and stripslashes/addslashes problem:

Junior Guru
Join Date: Nov 2000
Location: Holland
Posts: 246
Afaik that error simply means you got a stray backslash where PHP doesn't expect it.

Check line 1 of that script and remove any backslashes that seem out of place.

PS. a text editor with PHP syntax highlighting is great for these kind of issues.

PS 2: Note that PHP interprets "\" as an unterminated string containing just a quote ("). A backslash is an escape character. To get a backslash in this case, enter it twice: "\\" is a string with a single backslash.

Sponsored Links
Community Guide
Join Date: Jan 2006
Location: Athens, Greece
Posts: 1,479
I would a guess a \"

WHT Addict
Join Date: Aug 2004
Posts: 107
thanks guys you were all right.. there were a bunch of slashes in the file. until this i never knew anything about php but now im interested. thanks again guys



Related posts from
Title Type Date Posted
UK ISPs Offer Copyright Infringers a Slap on the Wrist as Part of New Educational Campaign Web Hosting News 2014-07-21 11:24:00
The Value of Partnerships Part 2 - Giving Customers What They Want Blog 2014-04-24 13:27:36
Technological and Ecological Change: Five Stages of Reaction Blog 2014-04-24 13:27:37
eNom Readies One and Two-Character .ORG Domain Auction Web Hosting News 2013-04-01 13:31:57
.CA Domain Will Support French Characters Starting Mid-January Web Hosting News 2012-12-31 15:11:30

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?