Personally, I prefer: AddType application/x-httpd-php .php .php3 .php4 .phtml AddType application/x-httpd-php-source .phps
Note the differentiation between php and php-source, and the inclusion of multiple extensions in a single type declaration. Also, I see in your example that you included .html as a valid php type (though the line is commented out). This would cause all of your HTML pages to be parsed by the web server. Therefore, you should not include .html as a php type. Instead, make sure all your pages which contain php code use one of the php extensions identified in your AddType declaration. Ryan At 9:21 AM +0000 1/29/02, [EMAIL PROTECTED] wrote: >Content-Type: text/plain; charset=US-ASCII >Content-Disposition: inline > ;Creation-Date="Tue, 29 Jan 2002 09:10:10 +0000" > ;Modification-Date="Tue, 29 Jan 2002 09:21:10 +0000" >Content-Transfer-Encoding: 7bit > >You need to uncomment/add a line(s) along the lines of : > >AddType application/x-httpd-php .php >AddType application/x-httpd-php .phps >AddType application/x-httpd-php .phtml >AddType application/x-httpd-php .php4 > >Because this is how it knows when to use the action dependant on >file extension >type. Note only one per line. > >Here is an Example of embedding php in html - save as a .php file > ><html><body> ><h1>Hello World</h1> ><?php >phpinfo(); >?> ></body><html> > >_Hope this helps.______Mark.__________________________________________________ > > >>>>>Hi, >>>>> >>>>>My name is Suzanne and I'm trying to install PHP4 and am having a few >problems. >>>>> >>>>>I have windows 98 >>>>>I downloaded Apache >>>>>I downloaded PHP4 windows installer >>>>> >>>>>I followed the wizard for apache and have tested to see that it >>>>>works (when I >st >>>>>art it I see one MS-Dos window that says its running and one or two others >flash >>>>> onto the screen and disapear. >>>>> >>>>>PHP is loaded into c:/Php >>>>> >>>>>In the Apache httpd.conf file I have put the following information >>>>> >>>>>ServerName localhost >>>>> >>>>>ScriptAlias /php/ ""c:/Php/"" (have also tried /php4/ ""c:/Php/"" ) >>>>> >>>>>#AddType application/x-httpd-php .php .phtml .html .php4 >>>>> >>>>>Action application/x-httpd-php /Php/php.exe >>>>> >>>>> >>>>>----------------------------------------------------------------- >>>>>----------- >---- >>>>> >>>>> >>>>>To test PHP I have tried creating the following in notepad >>>>> >>>>><? phpinfo() ?> >>>>> >>>>>saved as phpinfo.php in htdocs of apache. >>>>>Opened in IE6 as http://localhost/phpinfo.php gives screen with >>>>><? phpinfo() ?> >>>>> >>>>>If <html> <body> </html> </body> >>>>>is added around the above I get a blank screen >>>>> >>>>>----------------------------------------------------------------- >>>>>----------- >---- >>>>> >>>>> >>>>>I have also tried saving the well known Hello World. >>>>>On my computer I get a blank screen. >>>>>If I load it to my web page on free.fr which supports PHP I >>>>>get Hello World. >>>>> >>>>>----------------------------------------------------------------- >>>>>----------- >---- >>>>> >>>>> >>>>>I guess my computer is not recognizing PHP. >>>>>Can anyone see what could be going wrong. >>>>>Thanks a million >>>>>Suzanne >>>>> >>>>> > _/_/_/_/_/_/_/_/ > _/ _/ > Regards, _/_/_/_/ _/ > Mark Broad ..... _/ _/ > _/_/_/_/ _/ (R) > Senior Layout / CAD Support Engineer & Marlow Webmaster. > _ ____________________________________________ _ > / )| STMicroelectronics Ltd. |( \ > / / | Planar House, Parkway, Globe Park, | \ \ > _( (_ | _ Marlow, Bucks. SL7 1YL. UK. _ | _) )_ > (((\ \>| / ) E-Mail : [EMAIL PROTECTED] ( \ |</ /))) > (\\\\ \|/ / \ \|/ ////) > \ / Tel. : +44 (0)1628 896141 \ / > \ _/ Fax. : +44 (0)1628 896179 \_ / > / /| (Tina : 066 6141) |\ \ > /___/ |_______________________________________ (c) | \___\ > >Content-Type: text/plain >Content-Disposition: inline > ;Creation-Date="Mon, 28 Jan 2002 21:29:58 +0100" > ;Modification-Date="Mon, 28 Jan 2002 21:29:58 +0100" > >Hi, > >My name is Suzanne and I'm trying to install PHP4 and am having a >few problems. > >I have windows 98 >I downloaded Apache >I downloaded PHP4 windows installer > >I followed the wizard for apache and have tested to see that it >works (when I start it I see one MS-Dos window that says its running >and one or two others flash onto the screen and disapear. > >PHP is loaded into c:/Php > >In the Apache httpd.conf file I have put the following information > >ServerName localhost > >ScriptAlias /php/ ""c:/Php/"" (have also tried /php4/ ""c:/Php/"" ) > >#AddType application/x-httpd-php .php .phtml .html .php4 > >Action application/x-httpd-php /Php/php.exe > > >--------------------------------------------------------------------- >----------- > >To test PHP I have tried creating the following in notepad > ><? phpinfo() ?> > >saved as phpinfo.php in htdocs of apache. >Opened in IE6 as http://localhost/phpinfo.php gives screen with ><? phpinfo() ?> > >If <html> <body> </html> </body> >is added around the above I get a blank screen > >--------------------------------------------------------------------- >----------- > >I have also tried saving the well known Hello World. >On my computer I get a blank screen. >If I load it to my web page on free.fr which supports PHP I >get Hello World. > >--------------------------------------------------------------------- >----------- > >I guess my computer is not recognizing PHP. >Can anyone see what could be going wrong. >Thanks a million >Suzanne > > > >-- >PHP Install Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]