#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Chicago, IL USA
    Posts
    48
    Rep Power
    17
    can somebody tell me why my web server will parse .php files but not .php3 files?

    heres all the stuff in my httpd.conf..

    AddModule mod_php4.c

    <IfModule mod_dir.c>
    DirectoryIndex index.html index.shtml index.php index.php3
    </IfModule>

    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    ...is there anything i'm missing? .php3 files just show up as plain text my web browser but .php files get parsed and displayed.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Batesville, AR USA
    Posts
    4
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps[/quote]

    I don't think you need the line referring to php3, so you can get rid of that and your other line should have ".php3" added to it like so:

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>AddType application/x-httpd-php .php .php3
    AddType application/x-httpd-php-source .phps[/code]

    And that way the .php3 files get parsed by the php4 module. I think this should help.

Similar Threads

  1. PHP + mod_ssl + Apache - .php files not being parsed!!!
    By ray_cormier in forum Apache Development
    Replies: 4
    Last Post: May 19th, 2004, 06:23 PM
  2. apache not able to recognize .php files/extension
    By we_win in forum Apache Development
    Replies: 1
    Last Post: January 29th, 2003, 11:25 AM
  3. Looking for a certain .php script
    By DrClarke in forum PHP Development
    Replies: 3
    Last Post: September 7th, 2001, 02:48 AM
  4. .php or .php3
    By pgowder in forum PHP Development
    Replies: 2
    Last Post: May 24th, 2001, 10:31 AM
  5. .php or .php3 or .php4
    By scottgar in forum PHP Development
    Replies: 1
    Last Post: August 16th, 2000, 11:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo