On Thursday 05 February 2004 12:26 am, Rasmus Lerdorf wrote: > #!/usr/local/bin/php-cgi -d include_path=/path > <?php > ... > ?> > > and have it work both from the command line and from a web context.
Just a side note. This does not work on most systems due to kernel limitation on shebang line. Most systems accept only one argument, and some even limit the length of that. The only system that I know of which does support this is FreeBSD. Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php