Re: PHP with apache 1.3

From: Date: Tue, 28 May 2002 16:13:57 +0000
Subject: Re: PHP with apache 1.3
References: 1 2 3 4  Groups: php.install 
Request: Send a blank email to php-install+get-7139@lists.php.net to get a copy of this message
Peter wrote:
This file works: <?php $browser = getenv("HTTP_USER_AGENT"); ?> <P>You are using the <?php echo($browser);?> web browser. </P> It is called php_test.htm and is called as the action on a button from a plain html page.
Someone correct my if I'm wrong, but I think that's a bit of a fluke... if you want the interpreter called you have to name it .php... That's why you have that AddType line in your httpd.conf saying ".php is php4" and the other one saying ".php3 is php3"... Phil -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, 1759

« previous php.install (#7139) next »