Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!news-transit.tcx.org.uk!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Peter H. Coffin" Newsgroups: comp.lang.php Subject: Re: PHP runs in WinXP command window but not in browser Date: Mon, 4 Apr 2011 17:31:14 -0500 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <27ece291-ca5d-4873-9609-268a5cb0c896@f30g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="le/2G4+BNpieVhQI6uJ2Lw"; logging-data="17902"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bZDFeaYNh7HcXlhh1Uv/7" User-Agent: slrn/0.9.9p1 (OpenBSD) Cancel-Lock: sha1:yORXvUTSp3bHdItXL1CxP36Nmh8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:953 On Sun, 3 Apr 2011 18:42:45 -0700 (PDT), Peter Lauren wrote: > On Apr 3, 8:39?am, Tim Streater wrote: >> The web server can be your own machine but this doesn't alter the basic >> approach. > > I've been trying to run Apache which I downloaded from http://www.wampserver.com/en/. > The PHP command works fine in the command Window but I did see a > thread, on their forum, about Apache not starting. The forum > moderator said that could be because stuff like zonealarm, and > firewall/antivirus may cause a conflict. If you've misconfigured them, maybe. Every sane firewall, including every out-of-the-box one of the major vendors excepts localhost connections from blocking, because many applications do that to communicate internally, since Windows doesn't have OS sockets. *USUALLY* a suggestion that a firewall is causing a problem on a local machines is an indication that the speaker doesn't really have a clue and isn't interested in the problem. > I have them running on my PC but I don't want to turn them off and > make my PC vulnerable to hackers. Should I use a different version of > Apache? Should I use WAMP at all? WAMP's a perfectly reasonable thing to use. You'll need to make sure that you've got the services started properly. Which means going back to the WAMP setup and making sure you've dotted all the tees and crossed all the eyes. Get that Apache working THEN worry about making PHP hook up to it. It may be as simple as "you haven't turned it on yet". -- If any foreign minister begins to defend to the death a "peace conference," you can be sure his government has already placed its orders for new battleships and airplanes. -Joseph Stalin