DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Parse Error Assitance Needed (http://www.daniweb.com/forums/thread74800.html)

Bill Explosion Apr 10th, 2007 1:43 am
Parse Error Assitance Needed
 
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...
<?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">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>-= H2OH Recordings =-</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
a        {  color: #FFCC99; text-decoration: none;}
a:visited {  color: #FFCC99; text-decoration: none;}
ANY help EXTREMELY appreciated.

w_3rabi Apr 10th, 2007 6:11 am
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

Bill Explosion Apr 10th, 2007 2:03 pm
Re: Parse Error Assitance Needed
 
Quote:

Originally Posted by w_3rabi (Post 341947)
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:

w_3rabi Apr 10th, 2007 2:12 pm
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

Bill Explosion Apr 10th, 2007 2:43 pm
Re: Parse Error Assitance Needed
 
I joined the IRC channel.

Bill Explosion Apr 10th, 2007 3:24 pm
Re: Parse Error Assitance Needed
 
1 Attachment(s)
how about this?

DanceInstructor Apr 11th, 2007 2:14 am
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]

Bill Explosion Apr 11th, 2007 4:21 am
Re: Parse Error Assitance Needed
 
Quote:

Originally Posted by DanceInstructor (Post 342513)
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!


All times are GMT -4. The time now is 4:28 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC