Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1281

Re: PHP Runs In WinXP Command Window But Not In Browser

From "James Carlock" <jcarlock1@somemail.com>
Newsgroups comp.lang.php
Subject Re: PHP Runs In WinXP Command Window But Not In Browser
Date 2011-04-24 09:23 -0400
Organization Aioe.org NNTP Server
Message-ID <ip187p$fmf$1@speranza.aioe.org> (permalink)
References (11 earlier) <9c789107-6b4c-4853-a3ee-f9634a2a8acb@q30g2000vbs.googlegroups.com> <4dac73f9$0$23634$bed64819@gradwell.net> <74cdc52b-feaa-4b80-8742-0410f02895a6@d26g2000prn.googlegroups.com> <ioig8u$64v$1@speranza.aioe.org> <ae232c00-aba7-4e6e-8ebf-95994b39994c@hd10g2000vbb.googlegroups.com>

Show all headers | View raw


: Hi Jim,
:
: I'm new to this and do not see why I would want
: to change the DNS once it is assigned. I thought
: that the DNS just translates user friendly host
: names into IP addresses. Would I need to change
: the DNS if the host name and IP address remained
: the same?

No, if your IP does not change, you do not need to
worry about it, except when you change to a another
HOST (or possibly other situations).

: One concern that I do have is storage since I will
: need to store and process several very large files.

> Configure Apache on your XP machine to run PHP and
> then use your IP address as a SERVERNAME for the
> very first parameter. You can use the hosts file
> to configure the IP address to the host name as
> well for a quick and easy way to configure DNS
> for self-testing on XP.

: ServerName, in httpd.conf, is localhost:80.
: Should I change that to the IP address I get from
: ipconfig? When you say I can use the hosts file
: to configure the IP address to the host name, do
: you mean to do the same mapping on my machine that
: the DNS does on the web host?

The HOSTS file on a machine provides a quick way to
tell Apache (if you wanted to test things before
uploading them to your HOST) where to reach a domain
name configured for testing.

You can find the hosts file in the following space:
%systemroot%\system32\drivers\etc\

It might be located in another space if you run an
x64 version of Windows.

The "hosts" file is a plain text file which reads
something like:

# Start of entries inserted by
# Spybot - Search & Destroy
# Copyright 2000-2008 Safer Networking Limited
127.0.0.1 yyour_ssample_ddomain_nname.com

SpyBot Search & Destroy uses it to prevent visiting
remote sites and which helps prevent your machine
from visiting viral/SPAM/unorthodox sites. You can
use it to tell Apache where to reach an example
domain. It provides the same information that DNS
provides, but gets read before the software goes to
an outside DNS to find the information. Once found
in the HOSTS, most software uses that and does not
go out to an outside source (server). Above, I did
change the unorthodox domain name that SpyBot placed
in there to something that will not upset anyone
here and is unlikely to get used anywhere/anytime.

I do not use LOCALHOST for much of anything. However,
I read that using LOCALHOST inside of Apache might
create some problems. I can not confirm that without
making a lot of changes and I do not have the time to
test such things.

SpyBot Search & Destroy uses the "hosts" to store the
domain names of perhaps 1000 or more domains that
they found as lude, crude, porn or what ever and it
prevents the machine from going to an outside DNS to
look up those domain names and visiting those.

I have not followed the thread here, as I've been a
tad busy with other things. Forgive me for being a
tad slow on my reply.

The details that follow apply to running/hosting an
Apache server on your own machine.

httpd.conf
Listen = 80
ServerName = your_ip_address

Hope this helps. Good luck.

-- 
Jim Carlock
http://www.facebook.com/jim.carlock


Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-03 04:54 -0700
  Re: PHP Runs In WinXP Command Window But Not In Browser Luuk <Luuk@invalid.lan> - 2011-04-03 14:03 +0200
    Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-03 18:36 -0700
      Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-03 21:54 -0400
        Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-04 03:41 -0600
          Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 13:36 -0700
            Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-06 22:14 +0100
              Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 20:54 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-07 09:08 +0100
            Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-06 16:21 -0500
              Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 21:00 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-07 03:28 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-07 19:53 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-08 07:04 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 10:45 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-08 14:01 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 16:45 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 16:55 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-08 20:02 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:07 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-13 05:23 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-13 10:59 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 19:33 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 11:29 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Michael Fesser <netizen@gmx.de> - 2011-04-13 20:36 +0200
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 14:08 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser "P E Schoen" <paul@pstech-inc.com> - 2011-04-19 01:31 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-28 08:17 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 04:46 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 09:05 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-18 17:22 +0000
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 14:35 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-19 03:15 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-28 11:05 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-08 19:57 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-08 22:49 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:31 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 04:58 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 13:23 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-13 07:29 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 09:44 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-18 17:25 +0000
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 14:37 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser "James Carlock" <jcarlock1@somemail.com> - 2011-04-18 19:07 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-18 20:14 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-18 22:05 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-19 06:03 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-19 06:50 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-19 19:52 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-19 21:00 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-19 22:12 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-19 21:27 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-19 22:58 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-19 22:56 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-19 23:11 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-20 05:20 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-04-20 07:27 -0500
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-20 16:44 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser The Natural Philosopher <tnp@invalid.invalid> - 2011-04-20 17:16 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser The Natural Philosopher <tnp@invalid.invalid> - 2011-04-20 11:30 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-19 18:59 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser "James Carlock" <jcarlock1@somemail.com> - 2011-04-24 09:23 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-29 12:46 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-29 12:45 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-09 02:29 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:33 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-13 05:25 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 05:00 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 13:43 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 08:17 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-13 11:16 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-13 15:12 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-14 04:37 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-14 08:53 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-14 12:47 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 14:10 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-13 20:57 +0000
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 14:22 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-19 03:42 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Michael Fesser <netizen@gmx.de> - 2011-04-09 12:26 +0200
                Re: PHP Runs In WinXP Command Window But Not In Browser The Natural Philosopher <tnp@invalid.invalid> - 2011-04-09 12:10 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-09 17:09 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:43 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 05:08 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:43 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-13 15:13 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 20:21 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-13 19:22 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-14 10:10 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:57 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 13:20 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 09:19 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-19 03:42 -0600
                Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-19 10:36 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser The Natural Philosopher <tnp@invalid.invalid> - 2011-04-19 18:46 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-19 20:32 +0000
                Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-19 21:35 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser The Natural Philosopher <tnp@invalid.invalid> - 2011-04-19 22:19 +0100
                Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-19 19:52 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-19 22:15 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-28 12:18 -0700
            Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-07 03:19 -0600
      Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-04 09:53 +0100
  Re: PHP runs in WinXP command window but not in browser Tim Streater <timstreater@waitrose.com> - 2011-04-03 13:39 +0100
    Re: PHP runs in WinXP command window but not in browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-03 18:42 -0700
      Re: PHP runs in WinXP command window but not in browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-03 21:55 -0400
      Re: PHP runs in WinXP command window but not in browser crankypuss <no@email.thanks> - 2011-04-04 03:48 -0600
        Re: PHP runs in WinXP command window but not in browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 13:43 -0700
      Re: PHP runs in WinXP command window but not in browser "Peter H. Coffin" <hellsop@ninehells.com> - 2011-04-04 17:31 -0500
        Re: PHP runs in WinXP command window but not in browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 20:40 -0700
  Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-04 17:19 +0000
    Re: PHP Runs In WinXP Command Window But Not In Browser Jim Higgins <invalid@invalid.invalid> - 2011-04-05 18:36 +0000
      Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-05 16:07 -0400
      Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-05 23:01 +0100
      Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-05 23:27 +0000
      Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-13 12:14 -0400
    Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 20:18 -0700
    Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-06 20:19 -0700
      Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-07 13:16 +0000
      Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-07 14:09 +0000
        Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 10:33 -0700
          Re: PHP Runs In WinXP Command Window But Not In Browser Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-08 14:00 -0400
        Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 10:34 -0700
          Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-08 18:17 +0000
        Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-08 10:53 -0700
          Re: PHP Runs In WinXP Command Window But Not In Browser Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-04-08 18:30 +0000
            Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-12 20:06 -0700
              Re: PHP Runs In WinXP Command Window But Not In Browser crankypuss <no@email.thanks> - 2011-04-13 05:11 -0600
              Re: PHP Runs In WinXP Command Window But Not In Browser Tim Streater <timstreater@waitrose.com> - 2011-04-13 13:25 +0100
              Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-13 13:46 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-18 11:27 -0700
                Re: PHP Runs In WinXP Command Window But Not In Browser William Gill <nospam@domain.invalid> - 2011-04-18 19:15 -0400
                Re: PHP Runs In WinXP Command Window But Not In Browser Peter Lauren <peterdlauren@gmail.com> - 2011-04-28 08:12 -0700

csiph-web