PHP support in all_pre.sh script

Ehsan

Verified User
Joined
Jul 13, 2011
Messages
30
It seems PHP is not supported in all_pre.sh script,
I've used the code below in all_pre.sh but it doesn't work at all
Code:
#!/usr/local/bin/php
exit(1);

But using the Bash script works fine.
Code:
#!/bin/sh
exit 1;

I have used PHP in a few other scripts and it works fine, Is there any problem with using PHP in all_pre.sh?

Any help would be much appreciated.
 
Why dont you use different syntax?

create a file .php with your script
create all_pre.sh with this:

Code:
#!/bin/sh
/usr/local/bin/php yourscript
exit 0;

Regards
 
Why do you need php support what is wrong with sh?
 
Back
Top