| | |
Parse Error Assitance Needed
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
![]() |
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Solved Threads: 0
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...
ANY help EXTREMELY appreciated.
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)
<?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;}
Last edited by Bill Explosion; Apr 10th, 2007 at 1:51 am.
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Solved Threads: 0
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:
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]
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]
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Solved Threads: 0
•
•
•
•
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]
thanks a million mate!
Last edited by Bill Explosion; Apr 11th, 2007 at 4:22 am.
![]() |
Similar Threads
Other Threads in the PHP Forum
- Previous Thread: PHP help needed
- Next Thread: Send form inputs to email address
| Thread Tools | Search this Thread |
301 advanced apache api array autosuggest basics beginner broken cakephp class cms code combobox compression cron curl data database date datepart display dropdownlist dynamic email eregi error execution file files folder form forms function functions google head href htaccess html httppost if...loop image include includingmysecondfileinthechain ip javascript job joomla jquery js key library limit link login md5 menu mlm multiple mysql mysql_real_escape_string oop password paypal pdf pdfdownload php phpvotingscript problem procedure query random screen script search searchbox server session sessions smarty source space sql stored system table traffic tutorial unicode upload url variable video volume votedown web website youtube zend





