[PHP] Apache and php work but they do not work together
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 titlePHP Test/title /head body ?php echo 'pHello 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
[PHP] php question... opening external page/writing to it...
Hey... A quick question... How can I do the following (I know it's simple..!!!) All from the same page... Do some processing... Open an external page Write some stuff to the external page... The issue I seem to have is that if I open the external page during the onload... it's not ready when I want to write the data Any hints/comments/samples Thanks... Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php question... opening external page/writing to it...
sorry to make it a little more clear... I'd like the external page to be a separate web page...I'm using it to simply write out some debug data on the fly thanks bruce -Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 5:31 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] php question... opening external page/writing to it... I don't know if this is what you mean, but here is what you need to edit files: http://us2.php.net/manual/en/function.fopen.php http://us2.php.net/manual/en/function.fwrite.php http://us2.php.net/manual/en/function.fclose.php -Original Message- From: my [mailto:[EMAIL PROTECTED] Sent: 24. júní 2003 00:26 To: [EMAIL PROTECTED] Subject: [PHP] php question... opening external page/writing to it... Hey... A quick question... How can I do the following (I know it's simple..!!!) All from the same page... Do some processing... Open an external page Write some stuff to the external page... The issue I seem to have is that if I open the external page during the onload... it's not ready when I want to write the data Any hints/comments/samples Thanks... Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php