You can also change the apache config to use php for .html pages.
example in apache 2.0.x:
... normal stuff like documentroot, servername, ..
SetOutputFilter PHP
SetInputFilter PHP
Or globally in the /etc/httpd/conf.d/php.conf, add a:
SetOutputFilter PHP
SetInputFilter P
You can also change the apache config to use php for .html pages.
example in apache 2.0.x:
... normal stuff like documentroot, servername, ..
SetOutputFilter PHP
SetInputFilter PHP
Or globally in the /etc/httpd/conf.d/php.conf, add a:
SetOutputFilter PHP
SetInputFilter PHP
> PHP isn't working in my html docs - what changes do I need to make to get
it
> to do so? Does it need to be recompiled? Can I do it without
re-compiling?
Give your file a .php extension, maybe?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
On Friday 08 November 2002 05:35, Mike At Spy wrote:
> There isn't any .htaccess file in the directory - I added one with the line
> you specified, and my directory comes up with a 'server misconfiguration
> error'. Any other ideas? :)
You may have to put it inside a directory container:
A
t; To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 07, 2002 2:16 PM
> Subject: [PHP] PHP not working in html
>
>
> >
> > PHP isn't working in my html docs - what changes do I need to
> make to get
> it
> > to do so? Does it need to be recompiled?
PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 2:16 PM
Subject: [PHP] PHP not working in html
>
> PHP isn't working in my html docs - what changes do I need to make to get
it
> to do so? Does it need to be recompiled? Can I do it without
re-com
What extension are your files? Your web server is probably not set up to
handle your files as PHP files.
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmer
Come visit us at http://www.phparch.com!
--- Begi
PHP isn't working in my html docs - what changes do I need to make to get it
to do so? Does it need to be recompiled? Can I do it without re-compiling?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo