Page 1 of 1

how to run .php3 files

Posted: Wed Jun 04, 2008 3:21 am
by basudeb
H have some php files with extension .php3 . How can i run them? Please give suggestion

Re: how to run .php3 files

Posted: Thu Jun 05, 2008 9:01 am
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.

Re: how to run .php3 files

Posted: Thu Jun 05, 2008 9:51 am
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.

Re: how to run .php3 files

Posted: Thu Jun 05, 2008 12:49 pm
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.