php Problems
| From: | Darren | Date: | Sun, 10 Dec 2000 19:18:51 +0000 |
| Subject: | php Problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29570@lists.php.net to get a copy of this message | ||
Hello all. I've recently acquired php and ive got both apache and pws. I'm
having trouble getting either of the servers to run my php scripts. when I
run PHP from the command line it runs my script fine. The error message I
get is that I haven't included all the relevant header information. Can
anyone tell me what is missing please? here's my code
#!PHP
<?php
echo "Content-type: text/html\n\n";
echo
("<html><head><title>test</title></head><body>\n");
echo ("this is the simplest, an SGML processing instruction\n");
echo("if you want to serve XML documents, do like this\n");
echo("</body></html>")
?>