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

Your name:

Reply:


Posted by Andy Hassall on 05/26/07 21:07

On 26 May 2007 11:45:31 -0700, Michael <MichaelDMcDonnell@yahoo.com> 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@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация