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 #173454 is a reply to message #173374] Wed, 13 April 2011 16:14 Go to previous messageGo to previous message
William Gill is currently offline  William Gill
Messages: 31
Registered: March 2011
Karma:
Member
On 4/5/2011 2:36 PM, Jim Higgins wrote:
> 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.

There are two things you can do to "make life so much simpler", both are
beyond the scope of this forum. However, they are:

1) set up an IDE to run your php script/file as you edit i.e. PSPad
w/appropriate compiler settings to execute PHP.

and

2) establish virtual host(s) in your host file and httpd.conf or
httpd-vhosts.conf. the vhost (ServerName) can be any name you like such
as "dev" or "dev1." If you really want to "make life so much simpler"
set DirectoryIndex to the name of your file, or simply name your file
index.php while testing. Then all you have to type into the browser is
"dev" (you don't even need the "http://" because the browser will assume
that for you.

However, like I said. Further details should be sought in Apache and
PSPad documentation.

BTW I stopped using wamp configurations on my Win boxes in favor of
individual installation of each component (Apache, PHP, MySql, etc.)
because it gave me greater control over my environment, and updates. It
requires a little more effort up front, but helps to insure you know
what's what, and pays off in many ways.
[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: Fri Nov 22 16:50:56 GMT 2024

Total time taken to generate the page: 0.04563 seconds