[PHP] PHP as Shell script...

2003-02-20 Thread Brian McGarvie
I am having trouble using php as a script. #!/usr/local/bin/php ?php ... stuff ... ? using the above form creates the following cron error: /bin/sh: /usr/local/apache/sites/domain.com/tasks/autoreport/test.php: bad interpreter: No such file or directory Any ideas? Thanks in advance...

Re: [PHP] PHP as Shell script...

2003-02-20 Thread Ernest E Vogelsinger
At 12:16 20.02.2003, Brian McGarvie said: [snip] I am having trouble using php as a script. #!/usr/local/bin/php ?php ... stuff ... ? using the above form creates the following cron error: /bin/sh:

[PHP] php as shell script

2003-01-30 Thread David H
Hi, I am trying to run php as shell script. I have this: helloworld.php: ? echo Hello World.; ? I run php helloworld.php then I got this: Hello World. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 I am using Redhat 8, anyone knows what is the problem

Re: [PHP] php as shell script

2003-01-30 Thread Khalid El-Kary
maybe, but not sure, you need to replace ? with ?php, just try it! maybe it works Hi, I am trying to run php as shell script. I have this: helloworld.php: ? echo Hello World.; ? I run php helloworld.php then I got this: Hello World. Fatal error: Nesting level too deep - recursive

[PHP] PHP as shell script - generating exit status

2001-05-10 Thread Dave VanAuken
yes I know, PHP wasn't meant for this task... the question has been asked a number of tmes since V2... we have exit() which, all though you can place a variable or string in it, only prints it to the screen prior to killing itself (not sending as an exit code)... same with die AFAIK. is there