Some may also read the execve() linux man page. It has hints about argument parsing and shebangs :)
http://linux.die.net/man/2/execve Julien.P 2012/1/26 Ángel González <[email protected]> > On 26/01/12 11:35, Kiall Mac Innes wrote: > >> Surely you can detect which operating system you're running on, and have >> PHP act accordingly? >> >> (Note: on my phone, haven't read the link!) >> >> Kiall >> > It's probably not reliable. Note that a simple and completely reliable > solution > would be instead of having two files (php file + custom php.ini), to use a > third one as launcher: > > #!/bin/sh > exec php -dextension=foo.so -c /path/to/myphp.ini /path/to/myfile.php > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
