Skip to main content.
home | support | download

Back to List Archive

Re: using php for prog

From: Nick Le Mouton <noodles(at)>
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: []
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
  print("Hello World\n");

$ chmod a+x test.php

$ ./test.php
Hello World

 David Norris
  ICQ - 412039
Received on Mon Sep 27 23:26:23 2004