l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jun 07 12:03

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] i've lost my php groove!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] i've lost my php groove!

when i started to learn php, i was worked on the file:


and life was good.  then i noticed that php4 has a foreach construct, so
i apt-get installed php4.   this apt-get removed php3.  fine.  the php
FAQ says the two can live side by side, but ok.  i don't mind.

at this point, apache seems to know what to do with .php files, but not
.php3 (not surprised) nor .php4 (surprised) files.

i made 3 copies of the same file:


my server knows what to do with the 1st file, but not the last 2 files.
it's my understanding that /etc/apache/mime.types tells apache what
modules handle which file types:

application/x-httpd-php                phtml   pht   php
application/x-httpd-php-source         phps
application/x-httpd-php3               php3
application/x-httpd-php3-preprocessed  php3p
application/x-httpd-php4               php4

i don't mind renaming all my .php3 files to .php.  it's better than
having to rename them all to .php4.

but i'd like to understand why i had to use .php3 for php3 but .php for
php4.  what exactly is the difference between




any idea why application/x-httpd-php4 seems to be an unknown type for my
server?  the module that gets loaded in httpd.conf is:

   LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.