Re: Basic question (?php not working in html)

From: Date: Thu, 10 Aug 2000 15:29:54 +0000
Subject: Re: Basic question (?php not working in html)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11154@lists.php.net to get a copy of this message
In your apache configuration, add the following line: AddHandler application/x-httpd-php .php This tells apache to pass files ending with .php to the built in PHP interpreter. -Brendan ----- Brendan W. McAdams | ph. (305)377-2880 email: brendan@plexmedia.com | cell: (305)218-6466 Programmer/Systems Administrator | pager: (305)277-4879 Plexus M/2, Inc. | fax: (305)377-2870 http://www.plexmedia.com "Always listen to the experts; they'll tell you what can't be done and why. Then do it." - Robert A. Heinlein ----- Original Message ----- From: "Ira Mica" <iramica@yahoo.com> To: <php-general@lists.php.net> Sent: Thursday, August 10, 2000 11:15 AM Subject: [PHP] Basic question (?php not working in html) Hello, I did try to find this in the FAQ or other places but didn't... I just installed php4 (with apache on linux) and can get the following to work: if I create a file like test.php and put <?phpinfo()?> in it, going to myserver/test.php with a a browser shows phpinfo. but if I try to do the following in an html file: <HTML><BODY><?phpinfo()?></BODY></HTML> nothing happens. That is the browser shows a blank screen. Any idea why php might work in a php file and not in an html file. Thanx in advance. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11154) next »