httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Cornwall <...@evilrealms.net>
Subject [users@httpd] Apache 2.x w/ mod_php
Date Wed, 04 Sep 2002 17:48:13 GMT
Hi

I posted this to the PHP Install list, but didn't get any reply. Perhaps you 
guys might be able to help?

I've compiled and installed the latest stable version of mod_php (4.2.2 
wouldn't compile without errors) with (Linux) Apache 2.0.40, and it seems to 
be working fine.

My .php files are parsed correctly, but I was wondering if I can do the same 
for embedded PHP (<?php ... ?>) in .html files?

I've tried adding this to my httpd.conf:
  AddType application/x-httpd-php .html

But the PHP code remains unparsed, and all the pages are returned with type 
application/x-httpd-php (which makes my browser ask if I wish to save the 
page, rather than viewing it :/).

Any ideas?

Cheers,
Jay

-- 
http://www.evilrealms.net/ - Systems Administrator
http://www.ic.ac.uk/ - Imperial College, student and developer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message