Forum Moderators: coopster

Message Too Old, No Replies

.php3 files (how to include them)

         

firefly2442

1:28 am on Feb 10, 2003 (gmt 0)

10+ Year Member



I have a bunch of .php3 files that I want to be used by php. Whenever I try to access them, the actual code shows up. How can I get apache to run them? Thanks.

jatar_k

1:41 am on Feb 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sounds like you need to make sure the extension .php3 is parsed, change the extension to .php to test it.

Is it an apache server?

firefly2442

1:50 am on Feb 10, 2003 (gmt 0)

10+ Year Member



Yep, apache. I looked in the files and there are references all over to different .php3 files. I should probably change all those as well? What is the difference? Is there any way to just make .php3 be used as a regular .php file? Thanks.

jatar_k

1:59 am on Feb 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



just switch the file extension to .php for a quick test, if it parses then that is your problem.

in .htaccess addhandler for .php3 extension

AddHandler directive [httpd.apache.org]

firefly2442

3:11 am on Feb 10, 2003 (gmt 0)

10+ Year Member



Thanks! That did the trick. :)