[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] PHP Scripts



Does anyone have a small hello world a like, script I can test with PHP
??


-----------------------
Randall Clark
Victory Systems Inc.
Ph. 250-381-4483
Fax. 250-381-4473
www.ebizhosting.com
admin@xxxxxxxxxxxxxxxxxx 

-----Original Message-----
From: Kris Dahl [mailto:kris@xxxxxxxxxxxxx]
Sent: Friday, February 11, 2000 10:53 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] PHP3 file extensions


on 2/11/00 10:37 AM, Jonathan D. Hozeska at jhozeska@xxxxxxxxxxx wrote:

> I've recently installed PHP3 to my Raq2 and it is working fine.  I've
> noticed I need to name my files with a .PHP3 extension for the code to
be
> parsed properly.  How can I get a PHP3 file to be executed if I give
it an
> normal .HTML extension?

you'll need to add a handler to in your httpd.conf to parse all html
files.
There will be a slight performance hit if you choose to do this, as
mod_php
needs to parse all html and php files regardless of weather there is any
php
code in them.  This is not a problem if you are a complete php3 site,
but if
you are half and half it may be a problem.

Under the virtual hosts section of the /etc/httpd/conf/httpd.conf that
you
want this to apply to :

AddType application/x-httpd-php3 .html

Or update the global configuration in the srm.conf for this to be on all
the
sites on the raq:
Change the line:
AddType application/x-httpd-php3 .php3
To:
AddType application/x-httpd-php3 .html .php3

-k


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users