You are here: Re: When I run a PHP script the result displays in a DOS Window instead of browser « PHP Programming Language « IT news, forums, messages
Re: When I run a PHP script the result displays in a DOS Window instead of browser

Posted by skywriter14 on 05/26/07 21:27

On May 27, 1:58 am, Michael <MichaelDMcDonn...@yahoo.com> wrote:
> On May 26, 11:45 am, Michael <MichaelDMcDonn...@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?
>
> > Thanks; appreciate your help.
>
> > M. McDonnell
>
> Looks like I need to run in the localhost directory to make in run in
> the browser, correct?

Yup, In the webroot folder(or any sub folder of it) of your web
server. For apache, webroot is 'htdocs' directory. It's worth saying
that if PHP is your first web programming language, you have to study
web server basics too.

Can't help criticizing you though. When you fall into any problem you
should first google it. And as you are new to a language which is
vastly popular, you should just try "php beginners tutorial" or "php
basic tutorial" in google. My goal is not to have a bash at you,
rather remind you that best way to learn is learning how to learn at
first. I hope it helps you. And some links for you.

http://www.php.net/tut.php
http://www.phpfreaks.com/tutorials.php
http://wamp.corephp.co.uk/
http://www.howtoforge.com/php_programming_basics

 

Navigation:

[Reply to this 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

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