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 #173377 is a reply to message #173374] Tue, 05 April 2011 22:01 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <cqnmp6pjjps2kjlgb3h1j73u7alkj0jbfk(at)4ax(dot)com>,
Jim Higgins <invalid(at)invalid(dot)invalid> wrote:

> On 04 Apr 2011 17:19:39 GMT, Denis McMahon
> <denis(dot)m(dot)f(dot)mcmahon(at)gmail(dot)com> wrote:

>> 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're expecting things to work by magic. How do you suppose that
double-clicking a file is going to make the results display in a window
of another application?

I gave, in an earlier post, a simple ascii-art picture of how web pages
are served up. The only way you can avoid that [1] is if the file
extension is such that double-clicking the file opens it in a browser.
But in that case, *no* PHP execution will occur, the page will be
treated as if it contains *only* html. Browsers know nothing about PHP
and cannot do anything with it. The web server, by contrast, has as one
of its purposes to feed a requested page to the PHP interpreter, and
then feed the results of that back to your browser. Once the PHP has
run, there is no PHP left in the output stream, only the results.

[1] At least, this works on the Mac, I'm assuming the same is true for
other platforms.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[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 01:15:07 GMT 2024

Total time taken to generate the page: 0.04469 seconds