If you can't modify apache to do what you need, you could always write a
perl script to open up every file named *.php and add the line to the
top....it wouldn't be that hard, especially if you have any experience with
perl...

-----Original Message-----
From: Chris Chan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 18, 2001 4:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to change from php Apache module to php CGI?



I need the suexec feature. so i recompile the php4 to cgi. but i have
hundreds of php scripts under the existing web site. it's not a easy task to
add the line
#!/usr/local/bin/php
to each php file.

Anyone know is there any easy way to configure the httpd.conf without modify
hundreds of php files? Thanks in advance

----
  Chris Chan



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to