User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,013 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1253 | Replies: 7 | Solved
Reply
Join Date: Apr 2007
Posts: 5
Reputation: Bill Explosion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bill Explosion Bill Explosion is offline Offline
Newbie Poster

Help Parse Error Assitance Needed

  #1  
Apr 10th, 2007
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...
  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 12:51 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2006
Location: syria
Posts: 156
Reputation: w_3rabi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Parse Error Assitance Needed

  #2  
Apr 10th, 2007
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
Reply With Quote  
Join Date: Apr 2007
Posts: 5
Reputation: Bill Explosion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bill Explosion Bill Explosion is offline Offline
Newbie Poster

Help Re: Parse Error Assitance Needed

  #3  
Apr 10th, 2007
Originally Posted by w_3rabi View Post
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:
Reply With Quote  
Join Date: Dec 2006
Location: syria
Posts: 156
Reputation: w_3rabi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Parse Error Assitance Needed

  #4  
Apr 10th, 2007
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
Reply With Quote  
Join Date: Apr 2007
Posts: 5
Reputation: Bill Explosion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bill Explosion Bill Explosion is offline Offline
Newbie Poster

Re: Parse Error Assitance Needed

  #5  
Apr 10th, 2007
I joined the IRC channel.
Reply With Quote  
Join Date: Apr 2007
Posts: 5
Reputation: Bill Explosion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bill Explosion Bill Explosion is offline Offline
Newbie Poster

Re: Parse Error Assitance Needed

  #6  
Apr 10th, 2007
how about this?
Attached Files
File Type: txt rightframe.txt (41.6 KB, 2 views)
Reply With Quote  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Parse Error Assitance Needed

  #7  
Apr 11th, 2007
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]
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote  
Join Date: Apr 2007
Posts: 5
Reputation: Bill Explosion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bill Explosion Bill Explosion is offline Offline
Newbie Poster

Re: Parse Error Assitance Needed

  #8  
Apr 11th, 2007
Originally Posted by DanceInstructor View Post
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 3:22 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 6:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC