PDA

View Full Version : .php3 extension not displaying?



TomM
05-02-2006, 12:46 PM
Hi, I recently loaded up phpmychat which has page extensions of .php3. When I enter those in my browser they are not showing up. Anybody have any ideas for me?

Thank you for reading

toml
05-02-2006, 01:30 PM
You don't have php3 registered as an application type. Find the AddType line in your httpd.conf file for php and add php3 to it.

TomM
05-03-2006, 06:24 AM
Here is what I have already, I did not change anything. This is also the only place I can find any reference to what you are specifying.

<IfModule mod_php4.c>
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>

AddHandler cgi-script .cgi .pl

AddType text/html .shtml
AddHandler server-parsed .shtml

#AddHandler send-as-is asis

AddHandler imap-file map

#AddHandler type-map var

</IfModule>


What do you think?

Thank you agin

toml
05-03-2006, 07:07 AM
That does look good, it should server php3 files, assuming you are using php-4.x or php-3.x. If you are using php-5.x then those blocks of settings won't be executed.

TomM
05-03-2006, 07:21 AM
Im using php4.*.

Would there be anything within the php.ini file that might be relevant?

Thank you
-Tom M.

TomM
05-03-2006, 10:48 AM
lol, funnies thing...

Turns out that I was using a computer that was hooked to a different webserver with my dns name on it, and i was doing this php3 on a totally different webserver with my dns name on it which actually had that directory and files on it. So anyhow, thanks again for the help, I really appreciate it.
-Tom M.