RE: [PHP] Basic question (?php not working in html)

From: Date: Thu, 10 Aug 2000 15:36:06 +0000
Subject: RE: [PHP] Basic question (?php not working in html)
Groups: php.general 
Request: Send a blank email to php-general+get-11161@lists.php.net to get a copy of this message
Does anyone else on the list think that it's high time this question & answer got moved to the VERY FRONT PAGE of www.php.net? (Exaggeration, but...) Because it seems like 45% of the messages on this list related to this exact question & answer... Or maybe it could be made more prominent in the FAQ page, since Ira claims to have searched the FAQ but found nothing (?!?!!) > -----Original Message----- > From: Brendan W. McAdams [mailto:brendan-lists@plexmedia.com] > Sent: Thursday, August 10, 2000 9:30 AM > To: php-general@lists.php.net; Ira Mica > Subject: Re: [PHP] Basic question (?php not working in html) > > > 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 > > > > -- > 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 (#11161) next »