Re: How to set file extension php Mac OSX and PHP 4.0.6

From: Date: Mon, 03 Dec 2001 15:23:34 +0000
Subject: Re: How to set file extension php Mac OSX and PHP 4.0.6
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76382@lists.php.net to get a copy of this message
I don't think that Sherlock can recognize any file in the /etc directories. If you never use Terminal, then Sherlock is okay, but if you do stuff in the Terminal then you are working in levels of your computer that Apple has decided to "hide" from most users. The /etc directory is one example of this. For searches of the hard drive outside of the Apple-approved Sherlock-searchable directories, read the man page for "find". In your case, the file is probably located at /etc/httpd/httd.conf. Open this file in pico or emacs, but be sure to use "sudo emacs /etc/httpd/httpd.conf" if you are not logged in as root because it is not writeable by normal users. Erik On Sunday, December 2, 2001, at 04:15 PM, René Fournier wrote:
OK, that makes sense--that's what I did under WinME. The only problem is that I can't seem to find the httpd.conf file anywhere. At least, Sherlock is not returning any results. Do you know which directory httpd.conf is in? ...Rene On Sunday, December 2, 2001, at 01:56 PM, Michael B. Weiner wrote:
modify the apache configuration file (i.e. httpd.conf) and add it as and AddType, as in the following: AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps HTH -- René Fournier wrote:
I have successfully installed PHP 4.0.6, and it works! Only problem is that Apache only sends files to the PHP module that have a .php extension. However, I need to name the files .php4 (long story). As it stands, all I see is the actual PHP source, not the output. Does anyone know how I can change Apache and/or the PHP module to recognize .php4 files and execute them as such? Thanks. ...Rene


« previous php.general (#76382) next »