Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- XHTML and PHP?
- John Salerno
January 27, 2006, 4:28 pm
rate this thread
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"
<html xmlns="http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">
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.
Re: XHTML and PHP?
On Sat, 28 Jan 2006, Toby Inkster wrote:
It's quite amusing really: if you send content which is strictly
us-ascii, undeclared, over HTTP, then RFC2616 says it should be
assumed to be iso-8859-1, while XML can assume it's utf-8, and neither
of them are actually wrong :-}
This is not really advisable, though. Depending on the contents of
the ASCII data stream, MSIE might unilaterally decide that it's utf-7,
and CERT CA-2000-02 warns about cross-site scripting security flaws
which can be exploited. An appropriate explict encoding should always
be advertised, as the CERT alert recommends.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum