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 > .php and .php3

.php and .php3
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Feb 17, 2003, 09:08 PM
 
I downloaded a guestbook I wanna use for one of my sites, but its files are all .php3, and when I try to access them, they download through my browser, instead of running. Now I can't change them all to .php (i don't think) because then as they try to call each other (all the different files in this package) they will all get 404 type errors. I also don't wanna go through all the code and try to change all instances of .php3 to .php, then if i miss one its all messed up. Is there a way I can just make .php3's run as if they were .php?

BTW I'm running 10.2 Server.
     
Mac Elite
Join Date: Aug 2001
Location: Capitol City
Status: Offline
Reply With Quote
Feb 17, 2003, 11:20 PM
 
you can try to configure your server to parse the .php3 extension with the php4 module. I don't know if Server lets you do that easily or not. I don't know if it will even work right. I think it depends on the code, but its soemthign to try

in the /etc/httpd/httpd.conf there is a line that looks like this:

AddType application/x-httpd-php .php .html

(I added the .html, so I could parse php within html files)you would want to add .php3 to the end of it

.php .html .php3

YOu could try that and see if anything breaks. If it does, then you'll need to install the php3 module. and add that type to the conf file. Maybe this is automated in Server. If so, that's cool.

For better help with that, ask in the Unix section of this board.



* I edited this to make it more clear. I changed some stuff. MOre info here
(Last edited by DeathMan; Feb 17, 2003 at 11:34 PM. )
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Feb 17, 2003, 11:23 PM
 
Thats probably what I should have done, but instead i used bbedit and changed the .php3 in every file, all at once, as I said I did not wanna do. I didn't realize BBedit was that powerfull. I changed the files themselves, which was that hardest part, and now everything runs sweet!!
     
Mac Elite
Join Date: Aug 2001
Location: Capitol City
Status: Offline
Reply With Quote
Feb 17, 2003, 11:35 PM
 
BBedit is awesome. I agree 100%. I want to get the new version.

Sorry to be so slow on the answer, but that's a good solution. plus .php3 looks so outdated doesn't it?
     
   
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 08:48 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