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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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' |
|
|||
|
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' |
|
|||
|
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' > > |
|
|||
|
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' |
|
|||
|
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 |
|
|||
|
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 |