Hey all.
I've gone from outputting data from a webbot to the most basic statements in PHP and I'm still getting this error.
missing ; before statement
[Break on this error] Hello<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1
BEGIN HTML Code
<html>
<head>
<title>PHP Test</title>
<script language="JavaScript" type="text/javascript" src="/html_test/phpgetfile.php"></script>
</head>
<body>
</body>
</html>
END HTML Code
BEGIN PHP Code
<?php
echo 'Hello';
echo phpinfo();
?>
END PHP Code
If I run the php code directly, all is well. When I try to run it from inside an HTML program, it chokes.
In Firefox, the error indicates a position of at the "t" in html after doctype. This is in tools -> error console.
Any ideas? This has to be a simple fix.
Also, if I just echo "hello" without the phpinfo(), nothing is displayed on the webpage. I can look in firebug and see the word "hello", but it doesn't get displayed on the page itself.
Any help would be appreciated.