Hello,
I installed PHP 4.3.8-Win32 for Windows manually
following the instructions on the web
http://www.php.net/manual/en/install.windows.manual.php
 I extracted it into C:\php, added C:\php to the PATH,
copied ini-recommended to C:\php, renamed it to
php.ini and moved all files located in the dll and
sapi folders to the main folder (e.g. C:\php).  Next,
I inserted these following lines to httpd.conf file
(Apache configuration file):

# For PHP 4
Action application/x-httpd-php "/php/php.exe"

# specify the directory where php.ini is
SetEnv PHPRC C:/php

Next, I Created a file named hello.php and put it in
DocumentRoot C:/Program Files/Apache
Group/Apache/htdocs.  The content of the file is:
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
</body>
</html> 
  Then, I restarted the server and used my browser to
access the file: http://127.0.0.1/hello.php
I received the error 400 –Page cannot be found. I
could see php was running from command line.  Apache
can display .html files but it does not work for php.
Would anyone suggest what to do with that?
Thank you,
My Ton



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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

Reply via email to