Re: [PHP-INSTALL] Automatically adding #! to all PHP scripts

2007-07-05 Thread Jesse Santana
tate University, Long Beach 1250 Bellflower Blvd. Long Beach, CA 90840 Office: (562)985-8511 Fax: (562)985-8855 Keith Roberts <[EMAIL PROTECTED]> 07/05/2007 12:04 PM Please respond to Keith Roberts <[EMAIL PROTECTED]> To php-install@lists.php.net cc Subject Re: [PHP-INSTALL]

Re: [PHP-INSTALL] Automatically adding #! to all PHP scripts

2007-07-05 Thread Keith Roberts
Hi Jesse. It seems that you have a chicken-and-egg problem here. In order for php to process the auto_prepend_file it has to be in php mode already. And to get into php cgi mode you need the #!/path/to/php-cgi at the top of the script. So I guess each php file *MUST* start with the #!/path/to/

Re: [PHP-INSTALL] Automatically adding #! to all PHP scripts

2007-07-03 Thread Keith Roberts
Something like this may do it. *** from php.ini auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables aut