Hi all,
Just a quickie, when using PHP for shell scripting, can the exit() command be used to return an exit status for a script?
ie. exit(255) - would this kill the script and return 255 to the shell or whatever called the script.
thanks.
| SitePoint Sponsor |

Hi all,
Just a quickie, when using PHP for shell scripting, can the exit() command be used to return an exit status for a script?
ie. exit(255) - would this kill the script and return 255 to the shell or whatever called the script.
thanks.
Knowledge is knowing that a tomatoe is a fruit; wisdom is not putting it in a fruit salad.





Yes, that's what the manual says.

yeah thanks... I missed that bit, I only read the "prints it out bit"...![]()
Knowledge is knowing that a tomatoe is a fruit; wisdom is not putting it in a fruit salad.
Bookmarks