Re: [PHP] PHP not working in html

2002-12-20 Thread Dries Verachtert
You can also change the apache config to use php for .html pages. 

example in apache 2.0.x:

VirtualHost a.b.c.d:80
  ... normal stuff like documentroot, servername, ..
  Files *.html
SetOutputFilter PHP
SetInputFilter PHP
  /Files
/VirtualHost
Or globally in the /etc/httpd/conf.d/php.conf, add a:
Files *.html
  SetOutputFilter PHP
  SetInputFilter PHP
/Files

Example in apache 1.3.x:
Between the IfModule mod_mime.c and /IfModule tags, add the
following:
AddType application/x-httpd-php .html

Kind regards,
Dries Verachtert



On Thu, 2002-11-07 at 22:27, 1LT John W. Holmes wrote:
  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://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Fwd: Re: [PHP] PHP not working in html]

2002-12-20 Thread Dries Verachtert


You can also change the apache config to use php for .html pages. 

example in apache 2.0.x:

VirtualHost a.b.c.d:80
  ... normal stuff like documentroot, servername, ..
  Files *.html
SetOutputFilter PHP
SetInputFilter PHP
  /Files
/VirtualHost
Or globally in the /etc/httpd/conf.d/php.conf, add a:
Files *.html
  SetOutputFilter PHP
  SetInputFilter PHP
/Files

Example in apache 1.3.x:
Between the IfModule mod_mime.c and /IfModule tags, add the
following:
AddType application/x-httpd-php .html

Kind regards,
Dries Verachtert



On Thu, 2002-11-07 at 22:27, 1LT John W. Holmes wrote:
  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://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP not working in html

2002-11-12 Thread 1LT John W. Holmes
 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://www.php.net/unsub.php




Re: [PHP] PHP not working in html

2002-11-07 Thread Marco Tabini
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!


---BeginMessage---

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



---End Message---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP not working in html

2002-11-07 Thread Kevin Stone
In your .htaccess file remove anything that looks like this:
AddHandler server-parsed .html

And add this line:
AddType application/x-httpd-php .php .htm .html

Do a search for parse html php for more help.

-Kevin

- Original Message -
From: Mike At Spy [EMAIL 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-compiling?

 Thanks,

 -Mike



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP not working in html

2002-11-07 Thread Mike At Spy

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?  :)

Thanks!

-Mike





 In your .htaccess file remove anything that looks like this:
 AddHandler server-parsed .html

 And add this line:
 AddType application/x-httpd-php .php .htm .html

 Do a search for parse html php for more help.

 -Kevin

 - Original Message -
 From: Mike At Spy [EMAIL 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-compiling?
 
  Thanks,
 
  -Mike
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP not working in html

2002-11-07 Thread Jason Wong
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:

 Directory /home/www/
   AddType application/x-httpd-php .htm .html
 /Directory



Or you can edit your httpd.conf file instead:

IfModule mod_php4.c
  AddType application/x-httpd-php .php4 .php3 .php .html
  AddType application/x-httpd-php-source .phps
/IfModule

This will parse all html on all the websites served by apache.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
poor power conditioning
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php