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...
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:
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
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
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
5 matches
Mail list logo