FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Runs In WinXP Command Window But Not In Browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173375 is a reply to message #173374] Tue, 05 April 2011 20:07 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/5/2011 2:36 PM, Jim Higgins wrote:
> On 04 Apr 2011 17:19:39 GMT, Denis McMahon
> <denis(dot)m(dot)f(dot)mcmahon(at)gmail(dot)com> wrote:
>
>> On Sun, 03 Apr 2011 04:54:02 -0700, Peter Lauren wrote:
>>
>>> I am using Windows XP have installed WAMP and PHP as outlined here
>>> http://www.wampserver.com/en/ ........ [deleted]
>>
>> Simplified explanation for how php works on a webserver:
>>
>> 1) A surfer users their web browser to send a request to a webserver at
>> "http://<host>/<path>/<file>"
>>
>> ("<file>" is usually somename.php)
>>
>> 2) The webserver at "<host>" determines what file in it's filesystem
>> "<path>/<file>" refers to.
>>
>> 3) The webserver at "<host>" determines that the file in it's filesystem
>> that "<path>/<file>" refers to should be parsed for php code before
>> sending it to the surfers browser.
>>
>> 4) The webserver at "<host>" sends the actual file that"<path>/<file>"
>> refers to to the php script processor, and then sends the output from the
>> php script processor back to the web browser.
>>
>> You need to check that your web server is working. If it's on the same
>> machine as you are developing code on, try using your web browser to
>> connect to:
>>
>> a) http://localhost/
>>
>> or
>>
>> b) http://127.0.0.1/
>>
>> (If it is some other machine, modify the (a) host name or (b) ip address
>> as appropriate)
>>
>> If your web server is working, you should get a default page announcing
>> itself as apache (as you have installed wamp).
>>
>> If you don't get a "welcome to apache webserver" page, then you need to
>> start the webserver. That is beyond the scope of my knowledge, try
>> googling "wamp start webserver process"
>>
>> Once the web server is working, you next need to locate where the
>> webserver root is. This is not the root of your hard disc (or it damn
>> well shouldn't be) and will be specified in a configuration file. Again,
>> google is your friend.
>>
>> In the document root, insert a file called phpinfo.php with the text
>> between the cutlines below:
>>
>> ---8<--- cut here ---8<---
>> <?php phpinfo(); ?>
>> ---8<--- cut here ---8<---
>>
>> Then connect to the following url:
>>
>> http://<(a) server host name or (b) server ip address>/phpinfo.php
>>
>> And if you have been successful, and the web server is running, and your
>> configuration is correct, you will get displayed on your screen a large
>> amount of information about the php and web server configuration.
>
>
> I'm new to the group and the thread...
>
> Denis, the above is good stuff - THANK YOU - but how does one
> configure so that simply clicking on that phpinfo.php file results in
> the same action as connecting to
> http://localhost/phpinfo.php
>
> The answer to that would make life so much simpler. Having to type
> "http://localhost/" before every file name while trying to develop
> something is a total pain in the butt.

You don't. You MUST use a web server to serve the php pages. But then
that's what links and bookmarks are for.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: neither var_dump() nor die() displays anything
Next Topic: Spaces in filenames
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 04:28:22 GMT 2024

Total time taken to generate the page: 0.04671 seconds