hosted by liquidweb


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

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
  #1  
Old 08-04-2007, 03:05 AM
haleyhosting_com haleyhosting_com is offline
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 http://upithere.info. im getting this error on my front page. the index.php ...

__________________
HaleyHosting.com


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


Sponsored Links
  #2  
Old 08-04-2007, 03:35 AM
easytouch easytouch is offline
Newbie
 
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:
http://lists.evolt.org/archive/Week-...12/120447.html

  #3  
Old 08-04-2007, 05:50 AM
GHDpro GHDpro is offline
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
  #4  
Old 08-04-2007, 12:00 PM
Steve_Arm Steve_Arm is offline
Community Guide
 
Join Date: Jan 2006
Location: Athens, Greece
Posts: 1,479
I would a guess a \"

  #5  
Old 08-05-2007, 03:06 AM
haleyhosting_com haleyhosting_com is offline
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

__________________
HaleyHosting.com

Reply

Related posts from TheWhir.com
Title Type Date Posted
The Value of Partnerships Part 2 - Giving Customers What They Want Blog 2013-07-16 09:55:50
Technological and Ecological Change: Five Stages of Reaction Blog 2013-06-21 10:02:02
The Value of Partnerships Part 1: Leveraging an Existing Customer Base Blog 2013-07-22 12:11:24
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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?