Reply to XHTML and PHP?

Your name:

Reply:


Posted by John Salerno on 10/02/92 11:38

I got the following error message when I tried to use a PHP include() in
my XHTML file:

------
PHP Parse error: syntax error, unexpected T_STRING in
C:\Domains\johnjsal.com\wwwroot\g_camera_move.php on line 1
------

The top of my html file is:

-------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>........
-------

Is something in this heading causing a problem? I removed the first line
but still got the same message. Then I created a new HTML page with no
heading at all (I started with the <html> tag) and the include() worked.

So obviously something about my heading is causing problems, but I don't
understand what it is.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация