943,521 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 2274
  • PHP RSS
Apr 10th, 2007
0

Parse Error Assitance Needed

Expand Post »
I just started doing this site and did a extremely minimal update only to get this pesky error. I am not sure what the deal is and seriously want to fix this ASAP.

I'm sorry as well, as i'm brand new to this coding. (Didn't think i'd get such an annoying of an error by doing so little.)

The site.... http://www.h2ohrecordings.com/h20h/

The Error.... Parse error: parse error, unexpected T_STRING in /home/h2oh/public_html/h20h/rightframe.php on line 1

The Code.... First 10 lines at least...
php Syntax (Toggle Plain Text)
  1. <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <html>
  4. <head>
  5. <title>-= H2OH Recordings =-</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <style type="text/css">
  8. <!--
  9. a { color: #FFCC99; text-decoration: none;}
  10. a:visited { color: #FFCC99; text-decoration: none;}
ANY help EXTREMELY appreciated.
Last edited by Bill Explosion; Apr 10th, 2007 at 1:51 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bill Explosion is offline Offline
5 posts
since Apr 2007
Apr 10th, 2007
0

Re: Parse Error Assitance Needed

The Error.... Parse error: parse error, unexpected T_STRING in /home/h2oh/public_html/h20h/rightframe.php on line 1



the error is in the page called rightframe.php u should check it out
Reputation Points: 18
Solved Threads: 9
Junior Poster
w_3rabi is offline Offline
160 posts
since Dec 2006
Apr 10th, 2007
0

Re: Parse Error Assitance Needed

Click to Expand / Collapse  Quote originally posted by w_3rabi ...
The Error.... Parse error: parse error, unexpected T_STRING in /home/h2oh/public_html/h20h/rightframe.php on line 1



the error is in the page called rightframe.php u should check it out
OKay....yeah...i know that. I have been staring at that for hours and that's why I posted the code because I don't know what the problem is. So...I'm not sure what i'm supposed to 'check out.':rolleyes:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bill Explosion is offline Offline
5 posts
since Apr 2007
Apr 10th, 2007
0

Re: Parse Error Assitance Needed

dude u posted the html code
the error is in the php code
so u could send the whole code of the page or just the php stuff
Reputation Points: 18
Solved Threads: 9
Junior Poster
w_3rabi is offline Offline
160 posts
since Dec 2006
Apr 10th, 2007
0

Re: Parse Error Assitance Needed

I joined the IRC channel.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bill Explosion is offline Offline
5 posts
since Apr 2007
Apr 10th, 2007
0

Re: Parse Error Assitance Needed

how about this?
Attached Files
File Type: txt rightframe.txt (41.6 KB, 18 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bill Explosion is offline Offline
5 posts
since Apr 2007
Apr 11th, 2007
0

Re: Parse Error Assitance Needed

I think it's because the server accepts asp style code tags as php tags, in other words the server is try ing to parse <?xml... ?> as php.

So try this:
[PHP]<?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/PHP]
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005
Apr 11th, 2007
0

Re: Parse Error Assitance Needed

I think it's because the server accepts asp style code tags as php tags, in other words the server is try ing to parse <?xml... ?> as php.

So try this:
[php]<?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/php]
i love you. :eek: this worked and i fixed it up.

thanks a million mate!
Last edited by Bill Explosion; Apr 11th, 2007 at 4:22 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bill Explosion is offline Offline
5 posts
since Apr 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP help needed
Next Thread in PHP Forum Timeline: Send form inputs to email address





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC