|
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
[Back to original message]
|