Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > extensions php3 not working - php is

extensions php3 not working - php is
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2002
Location: UK
Status: Offline
Reply With Quote
Feb 6, 2002, 09:34 PM
 
I've set up PHPSlash on my computer (after a day or so!!)
and everything seems to be working - ie mysql etc.
however files with the extension .php3 don't work unless
I change each file to end .php
However there are loads and loads of files/links to the extension .php3.
Is there a simple way to get explorer to run php3 files without renaming the to just php.
Sorry if this doesn't make sense - I can't explain it any better!
cheers
rik
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Feb 6, 2002, 10:32 PM
 
This is the correct behavior. You have php 4 on your computer, who's standard extension is php (not .php3). If you would like to assign PHP4 to handle PHP3 code, then you need to tell apache this by going into the httpd.conf file and telling it this. Search for ".php3" once you are in the file, and the directions should be easy to find.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 8, 2002, 05:53 AM
 
Another way to do this, and this case it is probably the preferred method, is to not alter the httpd.conf file but rather do it in the .htaccess file instead. Add a line like this:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
AddHandler application/x-httpd-php .php3
</font>[/code]

The reason why changing the .htaccess file is better in this instance is that either is basically a hack, and it's better to localize (i.e. minimize) the effect of the hack to the root directory of the files in question. The httpd.conf has broader reach and the hack is likely to remain in place long after the .php3 files disappear from your server.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:39 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2