Re: [PHP] omitting the #!

2003-07-18 Thread skate
yeah, your currently running php through cgi on your live server, just
install php as a proper module, and you should be good to go.

you may also be able to stick a header on every page that includes the
#!.  not 100% with this tho, you'll have to have a look into it...


- Original Message -
From: Rob Day [EMAIL PROTECTED]
To: 'PHP Users' [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 4:49 PM
Subject: [PHP] omitting the #!


 First of all, I apologize if I'm asking a question with an obvious answer.

 I do my php development on a Windows 2000 machine. Whenever I move php
apps
 to the production server I have to add the path to php (#!/usr/bin/php) to
 the top of every php file. Is there some way I can configure the Apache or
 PHP so that I don't need to do this anymore? The server is Red Hat Linux
9.0
 with Apache 2.0.40 and PHP 4.2.2. Thanks.
 -Rob

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] omitting the #!

2003-07-18 Thread John Nichel
Rob Day wrote:
First of all, I apologize if I'm asking a question with an obvious answer.

I do my php development on a Windows 2000 machine. Whenever I move php apps
to the production server I have to add the path to php (#!/usr/bin/php) to
the top of every php file. Is there some way I can configure the Apache or
PHP so that I don't need to do this anymore? The server is Red Hat Linux 9.0
with Apache 2.0.40 and PHP 4.2.2. Thanks.
-Rob
I take it you haven't configured Apache on your *nix box to parse php?

In your httpd.conf.
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
Then restart your server (of course, I'm assuming that you compiled php 
for Apache2)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php