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) | \___\
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]

Reply via email to