Skip to main content.
home | support | download

Back to List Archive

Re: using php for prog

From: Nick Le Mouton <noodles(at)not-real.planetslackers.com>
Date: Tue Sep 28 2004 - 06:26:06 GMT
Don't worry, I'm just stupid, I forgot to put in the <? ?> tags =)

-----Original Message-----
From: swish-e@sunsite3.berkeley.edu [mailto:swish-e@sunsite3.berkeley.edu]
On Behalf Of David L Norris
Sent: Tuesday, 28 September 2004 5:57 p.m.
To: Multiple recipients of list
Subject: [SWISH-E] Re: using php for prog

On Mon, 2004-09-27 at 22:35 -0700, Nick Le Mouton wrote:
> I tried #!/usr/bin/php and #!/usr/bin/php at the top of the script and it
> just seems to spit out all of the php code instead of execute it

Dunno.  Works for me.

$ cat test.php
#!/usr/bin/php -q
<?PHP
  print("Hello World\n");
?>

$ chmod a+x test.php

$ ./test.php
Hello World


-- 
 David Norris
  http://www.webaugur.com/dave/
  ICQ - 412039
Received on Mon Sep 27 23:26:23 2004