Intro to PHP question
| From: | Jonathan Kahan | Date: | Thu, 08 Mar 2007 16:43:39 +0000 |
| Subject: | Intro to PHP question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-250087@lists.php.net to get a copy of this message | ||
Hi all,
I am using a linux server. When the php file below (uri.php) is run from the command line I get the following error. Any ideas on what I could do differently?
Thanks for any help,
Jonathan
../uri.php: line 1: syntax error near unexpected token `newline'
../uri.php: line 1: `<html>'
<html>
<body><?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?></body>
</html>
Kind Regards
Jonathan Kahan
--------------------------------------------------------------------
Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018
--------------------------------------------------------------------
Email: jonathan@estrintech.com
Web: http://www.estrintech.com