Terrible Newbie PHP Question...

This is a discussion on Terrible Newbie PHP Question... within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am an applications software developer of many years, but I am only now getting into web development with PHP. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2006
Markosoft
 
Posts: n/a
Default Terrible Newbie PHP Question...

I am an applications software developer of many years, but I am only now
getting into web development with PHP. I have a beginning PHP book, I have
downloaded and installed Apache Server and PHP and I have created my first
"Hello World" php script. Now, according to my book I should simply place
it into "any web-accessible directory" and call it with something like
"http://www.example.com/pmnp/1/phpinfo.php".

Okay, I must have missed something or I am an absolute total idiot, because
somehow I can't seem to find out anywhere how to create/declare a
web-accessible directory or where that path is defined. I am sure this must
be a no-brainer to anyone who has ever used PHP, but please consider that I
do not come from this domain and could really use a simple paragraph that
speaks to this.

Thanks in advance!

Mark


Reply With Quote
  #2 (permalink)  
Old 01-27-2006
roN
 
Posts: n/a
Default Re: Terrible Newbie PHP Question...

Markosoft wrote:

> I am an applications software developer of many years, but I am only now
> getting into web development with PHP. I have a beginning PHP book, I
> have downloaded and installed Apache Server and PHP and I have created my
> first
> "Hello World" php script. Now, according to my book I should simply place
> it into "any web-accessible directory" and call it with something like
> "http://www.example.com/pmnp/1/phpinfo.php".
>
> Okay, I must have missed something or I am an absolute total idiot,
> because somehow I can't seem to find out anywhere how to create/declare a
> web-accessible directory or where that path is defined. I am sure this
> must be a no-brainer to anyone who has ever used PHP, but please consider
> that I do not come from this domain and could really use a simple
> paragraph that speaks to this.
>
> Thanks in advance!


Hey, what you're looking for is a webspace. But you don't really need that
if you don't want to publish your scripts to the public in the inet. You
can do everything locally on your local Webserver (Apache).

--
chEErs roN

I'm root, I'm allowed to do this! ;)
keep on rockin'
Reply With Quote
  #3 (permalink)  
Old 01-27-2006
Markosoft
 
Posts: n/a
Default Re: Terrible Newbie PHP Question...

I appreciate your comments, but I still don't understand. If I have a file
called C:\PHP\phpinfo.php and I have apache server running on my PC (I did
install it with localhost and the service is running), what do I have to do
to see the results fo the script in a browser?

Thanks again,

Mark


"roN" <NOspam@example.com> wrote in message
news:43tajvF1oholrU8@individual.net...
> Markosoft wrote:
>
>> I am an applications software developer of many years, but I am only now
>> getting into web development with PHP. I have a beginning PHP book, I
>> have downloaded and installed Apache Server and PHP and I have created my
>> first
>> "Hello World" php script. Now, according to my book I should simply
>> place
>> it into "any web-accessible directory" and call it with something like
>> "http://www.example.com/pmnp/1/phpinfo.php".
>>
>> Okay, I must have missed something or I am an absolute total idiot,
>> because somehow I can't seem to find out anywhere how to create/declare a
>> web-accessible directory or where that path is defined. I am sure this
>> must be a no-brainer to anyone who has ever used PHP, but please consider
>> that I do not come from this domain and could really use a simple
>> paragraph that speaks to this.
>>
>> Thanks in advance!

>
> Hey, what you're looking for is a webspace. But you don't really need that
> if you don't want to publish your scripts to the public in the inet. You
> can do everything locally on your local Webserver (Apache).
>
> --
> chEErs roN
>
> I'm root, I'm allowed to do this! ;)
> keep on rockin'



Reply With Quote
  #4 (permalink)  
Old 01-27-2006
Markosoft
 
Posts: n/a
Default Never Mind...

I found the DOCUMENT_ROOT of Apache and put the file there and it worked.

Thanks anyway,

Mark

"Markosoft" <info@markosoft.net> wrote in message
news:St-dnXXzHaVz6ETeRVn-oQ@centurytel.net...
>I appreciate your comments, but I still don't understand. If I have a file
>called C:\PHP\phpinfo.php and I have apache server running on my PC (I did
>install it with localhost and the service is running), what do I have to do
>to see the results fo the script in a browser?
>
> Thanks again,
>
> Mark
>
>
> "roN" <NOspam@example.com> wrote in message
> news:43tajvF1oholrU8@individual.net...
>> Markosoft wrote:
>>
>>> I am an applications software developer of many years, but I am only now
>>> getting into web development with PHP. I have a beginning PHP book, I
>>> have downloaded and installed Apache Server and PHP and I have created
>>> my
>>> first
>>> "Hello World" php script. Now, according to my book I should simply
>>> place
>>> it into "any web-accessible directory" and call it with something like
>>> "http://www.example.com/pmnp/1/phpinfo.php".
>>>
>>> Okay, I must have missed something or I am an absolute total idiot,
>>> because somehow I can't seem to find out anywhere how to create/declare
>>> a
>>> web-accessible directory or where that path is defined. I am sure this
>>> must be a no-brainer to anyone who has ever used PHP, but please
>>> consider
>>> that I do not come from this domain and could really use a simple
>>> paragraph that speaks to this.
>>>
>>> Thanks in advance!

>>
>> Hey, what you're looking for is a webspace. But you don't really need
>> that
>> if you don't want to publish your scripts to the public in the inet. You
>> can do everything locally on your local Webserver (Apache).
>>
>> --
>> chEErs roN
>>
>> I'm root, I'm allowed to do this! ;)
>> keep on rockin'

>
>



Reply With Quote
  #5 (permalink)  
Old 01-27-2006
roN
 
Posts: n/a
Default Re: Never Mind...

Markosoft wrote:

> I found the DOCUMENT_ROOT of Apache and put the file there and it worked.


Okay, finally you got it, nice :)

> Thanks anyway,


you're welcome. :)

> Mark
>
> "Markosoft" <info@markosoft.net> wrote in message
> news:St-dnXXzHaVz6ETeRVn-oQ@centurytel.net...
>>I appreciate your comments, but I still don't understand. If I have a
>>file called C:\PHP\phpinfo.php and I have apache server running on my PC
>>(I did install it with localhost and the service is running), what do I
>>have to do to see the results fo the script in a browser?
>>
>> Thanks again,
>>
>> Mark
>>
>>
>> "roN" <NOspam@example.com> wrote in message
>> news:43tajvF1oholrU8@individual.net...
>>> Markosoft wrote:
>>>
>>>> I am an applications software developer of many years, but I am only
>>>> now
>>>> getting into web development with PHP. I have a beginning PHP book, I
>>>> have downloaded and installed Apache Server and PHP and I have created
>>>> my
>>>> first
>>>> "Hello World" php script. Now, according to my book I should simply
>>>> place
>>>> it into "any web-accessible directory" and call it with something like
>>>> "http://www.example.com/pmnp/1/phpinfo.php".
>>>>
>>>> Okay, I must have missed something or I am an absolute total idiot,
>>>> because somehow I can't seem to find out anywhere how to create/declare
>>>> a
>>>> web-accessible directory or where that path is defined. I am sure this
>>>> must be a no-brainer to anyone who has ever used PHP, but please
>>>> consider
>>>> that I do not come from this domain and could really use a simple
>>>> paragraph that speaks to this.
>>>>
>>>> Thanks in advance!
>>>
>>> Hey, what you're looking for is a webspace. But you don't really need
>>> that
>>> if you don't want to publish your scripts to the public in the inet. You
>>> can do everything locally on your local Webserver (Apache).
>>>
>>> --
>>> chEErs roN
>>>
>>> I'm root, I'm allowed to do this! ;)
>>> keep on rockin'

>>
>>


--
chEErs roN

I'm root, I'm allowed to do this! ;)
keep on rockin'
Reply With Quote
  #6 (permalink)  
Old 01-27-2006
Geoff Berrow
 
Posts: n/a
Default Re: Terrible Newbie PHP Question...

Message-ID: <St-dnXXzHaVz6ETeRVn-oQ@centurytel.net> from Markosoft
contained the following:

>I appreciate your comments, but I still don't understand. If I have a file
>called C:\PHP\phpinfo.php and I have apache server running on my PC (I did
>install it with localhost and the service is running), what do I have to do
>to see the results fo the script in a browser?



if you install php and Apache as a bundle (e.g PHPDEV
http://www.firepages.com.au/ or XAMPP
http://www.apachefriends.org/en/xampp.html ) everything is set up for
you.

I find PHPDEV easiest. Go for phpdev 423. Install it, run it from the
start menu and that's it.. Within the phpdev folder it creates another
folder called www which is your web root.


--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Reply With Quote
  #7 (permalink)  
Old 01-27-2006
Rocky
 
Posts: n/a
Default Re: Terrible Newbie PHP Question...

In article <St-dnXXzHaVz6ETeRVn-oQ@centurytel.net>, info@markosoft.net
says...
> and I have apache server running on my PC (I did
> install it with localhost and the service is running)
>

Within the Apache install, there's usually a folder called 'htdocs'.
That's the default 'web-accessible directory'.
Put your PHP scripts in there.
The default folder can be changed.

Or, as Geoff pointed out, get a bundle where (near-enough) everything is
set up as it's installed.

Rocky
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0