You sure you don't have something like: <?php <html> . . . Or, perhaps, if you are usin CGI, and you have JUST set it up, and you have the wrong command line flags to execute the input as PHP directly somehow... Does <?php phpinfo();?> work? On Thu, March 8, 2007 11:43 am, Jonathan Kahan wrote: > 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@xxxxxxxxxxxxxx > Web: http://www.estrintech.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php