For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > naive question from a newbie









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author naive question from a newbie
Jeremy Watts

2004-03-26, 11:13 pm

Hi folks,

I'm a complete PHP virgin i'm afraid, and have as far as i'm aware installed
apache and php. i have also downloaded a PHP programming environment called
PHP Coder Pro!

But on attempting to run any program i am given the message "The current
file is not located in a Web Server Document Root subpath. Thus it cannot be
accessed by the webserver! Please save this file in a Document Root sub
path."

Someone told me to save program files in the "DocumentRoot" heading given in
the apache configuaration file. I have tried this but still get the same
message.

Any help appreciated.

Jeremy


Michael Vilain

2004-03-26, 11:13 pm

In article <FFW8c.253$Hc1.226@newsfe2-gui.server.ntli.net>,
"Jeremy Watts" <jeremy.watts70@ntlworld.com> wrote:

> Hi folks,
>
> I'm a complete PHP virgin i'm afraid, and have as far as i'm aware installed
> apache and php. i have also downloaded a PHP programming environment called
> PHP Coder Pro!
>
> But on attempting to run any program i am given the message "The current
> file is not located in a Web Server Document Root subpath. Thus it cannot be
> accessed by the webserver! Please save this file in a Document Root sub
> path."
>
> Someone told me to save program files in the "DocumentRoot" heading given in
> the apache configuaration file. I have tried this but still get the same
> message.
>
> Any help appreciated.
>
> Jeremy
>
>


php runs as a command-line utility or more commonly as a module built
into a web server like Apache. When it's configured this way, the web
server can be configured to execute pages on the server which have php
code embedded in them.

There are several things you should do before you start.

1) buy some basic php books
2) if you don't know about Apache, buy an apache book. I like O'Reilly's
http://safari.oreilly.com/?XmlId=0-596-00203-3
3) configure an apache version on your system. There are versions that
run on Billyware as well as Unix.

Then you can start your experiments...

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com