how to run .php3 files

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
basudeb
Forum Commoner
Posts: 44
Joined: Wed Dec 20, 2006 12:13 am

how to run .php3 files

Post by basudeb »

H have some php files with extension .php3 . How can i run them? Please give suggestion
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: how to run .php3 files

Post by vargadanis »

Rename it to PHP.
Or... If you do not even have PHP runtime than download it from php.net. Unders linux it is just a command:
apt-get install libapache2-mod-php5 php5 mysql-client mysql-server mysql-common
For windows I suggest you to download XAMPP.
http://www.apachefriends.org/en/xampp.html

You will have to run the PHP file in the browser by typing: localhost/filename.php3
PHP3 might have been removed from apache httpd conf file. If so let me know.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: how to run .php3 files

Post by pickle »

I believe there's a setting in php.ini or your Apache conf file that says which extensions should be treated as PHP.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: how to run .php3 files

Post by vargadanis »

It mostly depends on Apache's config. There is a similar to this
AddType application/x-httpd-php .php .phtml
You will need to put php3 on the end of it.
Post Reply