Re: Intro to PHP question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Dave,

I am attempting to use html for learning purposes. My goal is to begin working on a website. 

Tijnema,

I tried the below and got the following errors. I can't imagine the error on line 3 is a tag issue.

Jonathan

[root@ip-XXX-XXX-XX-XXX cgi-bin]# ./uri.php
./uri.php: line 2: ?php: No such file or directory
./uri.php: line 3: syntax error near unexpected token `"D"'
./uri.php: line 3: `$d=date("D");'
[root@ip-XXX-XXX-XX-XXX cgi-bin]# vi uri.php
[root@ip-XXX-XXX-XX-XXX  cgi-bin]# vi uri.php

<?php
$d=date("D");
if ($d=="Fri")
  echo "Have a nice weekend!";
else
  echo "Have a nice day!";
?>
  ----- Original Message ----- 
  From: Dave Goodchild 
  To: Tijnema ! 
  Cc: Jonathan Kahan ; php-general@xxxxxxxxxxxxx 
  Sent: Thursday, March 08, 2007 12:43 PM
  Subject: Re:  Intro to PHP question


  If you are running that from the command line, why do you need html? Not sure why you're doing that. 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux