Jump to content


Photo

XHTML


  • Please log in to reply
4 replies to this topic

#1 zork

zork
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 May 2003 - 01:47 AM

Hi can anyone tell me how i can get XHTML to work on my Apache server.

Ive loaded my page in XHTML but i get this error
Parse error: parse error, unexpected T_STRING in c:webzork.htm on line 1

My server is on my home pc so its localhost....

Please any Help

#2 barbatruc

barbatruc
  • Members
  • PipPip
  • Member
  • 28 posts
  • LocationMontreal, Quebec, Canada

Posted 26 May 2003 - 12:39 PM

Can we get a sample of you code? It would help to solve your problem.

JP.
Unfortunately, PHP \'empowered every moron with a copy of Windows notepad to be \"web programmers\". (...) Give PHP a real INFRASTRUCTURE. Use PEAR!!!\'

#3 zork

zork
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 May 2003 - 05:34 PM

Which bit would you like ...?

#4 barbatruc

barbatruc
  • Members
  • PipPip
  • Member
  • 28 posts
  • LocationMontreal, Quebec, Canada

Posted 27 May 2003 - 05:00 PM

It says parse error on line 1...

Line 1 (and several more) could be useful.

JP.
Unfortunately, PHP \'empowered every moron with a copy of Windows notepad to be \"web programmers\". (...) Give PHP a real INFRASTRUCTURE. Use PEAR!!!\'

#5 barbatruc

barbatruc
  • Members
  • PipPip
  • Member
  • 28 posts
  • LocationMontreal, Quebec, Canada

Posted 27 May 2003 - 05:16 PM

JUst remember I already encountered something like this...

it says parse error on line one... is the line one containing something like <?xml ?
If it is, PHP is trying to parse XML content... because of the short tag <? may be accepted by your php.ini configuration. To solve that, you may try to output the first line with PHP itself:
<?php echo \'<?xml ... ?>\'; ?>
If this works, then this is not necessary to submit part of your code. ;)

JP.
Unfortunately, PHP \'empowered every moron with a copy of Windows notepad to be \"web programmers\". (...) Give PHP a real INFRASTRUCTURE. Use PEAR!!!\'




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users