Re: When I run a PHP script the result displays in a DOS Window instead of browser



On 26 May 2007 11:45:31 -0700, Michael <MichaelDMcDonnell@xxxxxxxxx> wrote:

I have both PHP and Apache installed on my Windows machine.

When I open up a PHP script file in my browser, the output goes to a
DOS Window (and the window closes immediately upon completion of the
script).

Can anyone tell me how I can get the script output to display in the
browser?

What are you doing, just opening the file off the filesystem? That's not how
it works - you need to configure Apache to run PHP, and access the pages
through your local Apache - most likely as http://localhost/.

Start here: http://www.php.net/manual/en/install.windows.apache2.php

... and bear in mind you want to run as an "Apache module" and not as a "CGI
binary", so pick the bits of the documentation above appropriately.
--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages


Loading