Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageMarkosoft 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'
Post Follow-up to this messageI 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: > > > 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'
Post Follow-up to this messageMessage-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 0011011010110110010001101111011001110010 11 1001100011011011110010111001110101011010 11
Post Follow-up to this messageIn 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.