Re: omitting the #!

From: Date: Fri, 18 Jul 2003 16:06:36 +0000
Subject: Re: omitting the #!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155797@lists.php.net to get a copy of this message
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)

« previous php.general (#155797) next »