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
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173470 is a reply to message #173468] Thu, 14 April 2011 09:10 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article <io5b7s$74g$1(at)dont-email(dot)me>,
William Gill <nospam(at)domain(dot)invalid> wrote:

> On 13/4/2011 3:21 PM, Tim Streater wrote:
>
>> In both cases you mean "e.g." and not "i.e", otherwise a good explanation.
>
> Well I was very tired, and its been over a half century since I studied
> Latin. However, "that is" still works (though "for example" works better.)

Hmmm, not sure I agree with that - both of these abbreviations are
standard but many people still seem to use the wrong one. I class it
with the use of "loose" when "lose" is meant.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173471 is a reply to message #173462] Thu, 14 April 2011 10:37 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> On 4/13/2011 2:16 PM, Peter Lauren wrote:
>> On Apr 13, 5:25 am, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>> On 4/12/2011 11:33 PM, Peter Lauren wrote:
>>>
>>>
>>>
>>>> On Apr 9, 4:29 am, crankypuss<n...@email.thanks> wrote:
>>>> > Peter Lauren<peterdlau...@gmail.com> wrote:
>>>> >> On Apr 8, 2:01 pm, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> >>> On 4/8/2011 1:45 PM, Peter Lauren wrote:
>>>
>>>> >>>> On Apr 8, 8:04 am, "Mr. B-o-B"<mr.chew.b...@gmail.com> wrote:
>>>> >>>>> Peter Lauren cried from the depths of the abyss...
>>>
>>>> >>>>>> I just noticed that I do have the Wampserver icon on the quick launch
>>>> >>>>>> part of the task bar. I do actually get one menu, with the function
>>>> >>>>>> you mention, with a a single click of the left button and a smaller
>>>> >>>>>> menu, with the Exit function, with a single click of the right. So it
>>>> >>>>>> looks like I'm in business.
>>>
>>>> >>>>> Fantastic.
>>>
>>>> >>>> Thanks. But I'm still having a problem. I left-click on the task bar
>>>> >>>> icon, click on Apache:httpd.conf, and a file opens in notepad. In
>>>> >>>> admin. mode, I can edit the file and set
>>>> >>>> DocumentRoot "f:/SomeOther/Directory"
>>>> >>>> It still uses the .php file in c:\wamp\www
>>>
>>>> >>>> Thanks,
>>>> >>>> Peter.
>>>
>>>> >>> Did you stop and restart Apache after making the changes? The
>>>> >>> configuration file is only run when Apache starts up, not on every request.
>>>
>>>> >>> --
>>>> >>> ==================
>>>> >>> Remove the "x" from my email address
>>>> >>> Jerry Stuckle
>>>> >>> JDS Computer Training Corp.
>>>> >>> jstuck...@attglobal.net
>>>> >>> ==================
>>>
>>>> >> I fixed the Forbidden problem. There was a part in the httpd.conf
>>>> >> file that said
>>>> >> # This should be changed to whatever you set DocumentRoot to.
>>>
>>>> >> I fixed that and now it works.
>>>
>>>> >> Still haven't figured out how to get it to work w/o the /localhost/
>>>> >> part though
>>>
>>>> > Depends on what you really want to do. The browser needs a domain to
>>>> > send your request to, there's no way I know of to avoid giving it
>>>> > *something*.
>>>
>>>> > Since you're on windows, you can modify your "hosts" file to point
>>>> > additional domains at ip-addr 127.0.0.1 if you want. Then you'll need
>>>> > to update "httpd.conf" for those domains too. It gets a bit complex
>>>> > for me (at least) to attempt to explain here.
>>>
>>>> > If you can be more explicit about what you really want to do, you're
>>>> > more likely to get an answer you can use.
>>>
>>>> > --
>>>> > no aluminum siding offers today
>>>
>>>> I would like to run PHP and Java code on my own browser and over the
>>>> Internet. It will be called from an hyml file that is on my local
>>>> PC.
>>>
>>>> Thanks,
>>>> Peter.
>>>
>>> Browsers don't run PHP or Java code (they can, however, run Javascript
>>> code, which is an entirely different animal).
>>>
>>
>> I learned JavaScript before this and did not need a browser as you
>> point out. It was when I started using PHP that I found I could not
>> see the output on my browser until I installed WAMP and started it
>> running. Now I can see the output when WAMP is running so the browser
>> would appear to be accessing the server. The server is currently
>> offline but I still get the output on my browser.
>>
>> Thanks,
>> Peter.
>
> The server is not offline.

Terminology issue, see below.

> It is running, or your browser would get a
> connection error message.
>
> It may not be available to the internet (and should NOT be as others
> have pointed out), but it is running.

Wampserver uses the term "offline" to mean "not available to the
internet". The term "local" might have been more descriptive, but
"offline" is the term they chose.

--
no aluminum siding offers today
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173472 is a reply to message #173471] Thu, 14 April 2011 12:53 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/14/2011 6:37 AM, crankypuss wrote:
> Jerry Stuckle<jstucklex(at)attglobal(dot)net> wrote:
>
>> On 4/13/2011 2:16 PM, Peter Lauren wrote:
>>> On Apr 13, 5:25 am, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> On 4/12/2011 11:33 PM, Peter Lauren wrote:
>>>>
>>>>
>>>>
>>>> > On Apr 9, 4:29 am, crankypuss<n...@email.thanks> wrote:
>>>> >> Peter Lauren<peterdlau...@gmail.com> wrote:
>>>> >>> On Apr 8, 2:01 pm, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> >>>> On 4/8/2011 1:45 PM, Peter Lauren wrote:
>>>>
>>>> >>>>> On Apr 8, 8:04 am, "Mr. B-o-B"<mr.chew.b...@gmail.com> wrote:
>>>> >>>>>> Peter Lauren cried from the depths of the abyss...
>>>>
>>>> >>>>>>> I just noticed that I do have the Wampserver icon on the quick launch
>>>> >>>>>>> part of the task bar. I do actually get one menu, with the function
>>>> >>>>>>> you mention, with a a single click of the left button and a smaller
>>>> >>>>>>> menu, with the Exit function, with a single click of the right. So it
>>>> >>>>>>> looks like I'm in business.
>>>>
>>>> >>>>>> Fantastic.
>>>>
>>>> >>>>> Thanks. But I'm still having a problem. I left-click on the task bar
>>>> >>>>> icon, click on Apache:httpd.conf, and a file opens in notepad. In
>>>> >>>>> admin. mode, I can edit the file and set
>>>> >>>>> DocumentRoot "f:/SomeOther/Directory"
>>>> >>>>> It still uses the .php file in c:\wamp\www
>>>>
>>>> >>>>> Thanks,
>>>> >>>>> Peter.
>>>>
>>>> >>>> Did you stop and restart Apache after making the changes? The
>>>> >>>> configuration file is only run when Apache starts up, not on every request.
>>>>
>>>> >>>> --
>>>> >>>> ==================
>>>> >>>> Remove the "x" from my email address
>>>> >>>> Jerry Stuckle
>>>> >>>> JDS Computer Training Corp.
>>>> >>>> jstuck...@attglobal.net
>>>> >>>> ==================
>>>>
>>>> >>> I fixed the Forbidden problem. There was a part in the httpd.conf
>>>> >>> file that said
>>>> >>> # This should be changed to whatever you set DocumentRoot to.
>>>>
>>>> >>> I fixed that and now it works.
>>>>
>>>> >>> Still haven't figured out how to get it to work w/o the /localhost/
>>>> >>> part though
>>>>
>>>> >> Depends on what you really want to do. The browser needs a domain to
>>>> >> send your request to, there's no way I know of to avoid giving it
>>>> >> *something*.
>>>>
>>>> >> Since you're on windows, you can modify your "hosts" file to point
>>>> >> additional domains at ip-addr 127.0.0.1 if you want. Then you'll need
>>>> >> to update "httpd.conf" for those domains too. It gets a bit complex
>>>> >> for me (at least) to attempt to explain here.
>>>>
>>>> >> If you can be more explicit about what you really want to do, you're
>>>> >> more likely to get an answer you can use.
>>>>
>>>> >> --
>>>> >> no aluminum siding offers today
>>>>
>>>> > I would like to run PHP and Java code on my own browser and over the
>>>> > Internet. It will be called from an hyml file that is on my local
>>>> > PC.
>>>>
>>>> > Thanks,
>>>> > Peter.
>>>>
>>>> Browsers don't run PHP or Java code (they can, however, run Javascript
>>>> code, which is an entirely different animal).
>>>>
>>>
>>> I learned JavaScript before this and did not need a browser as you
>>> point out. It was when I started using PHP that I found I could not
>>> see the output on my browser until I installed WAMP and started it
>>> running. Now I can see the output when WAMP is running so the browser
>>> would appear to be accessing the server. The server is currently
>>> offline but I still get the output on my browser.
>>>
>>> Thanks,
>>> Peter.
>>
>> The server is not offline.
>
> Terminology issue, see below.
>
>> It is running, or your browser would get a
>> connection error message.
>>
>> It may not be available to the internet (and should NOT be as others
>> have pointed out), but it is running.
>
> Wampserver uses the term "offline" to mean "not available to the
> internet". The term "local" might have been more descriptive, but
> "offline" is the term they chose.
>

A very poor choice of terminology, IMHO.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173474 is a reply to message #173472] Thu, 14 April 2011 18:47 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> On 4/14/2011 6:37 AM, crankypuss wrote:
>> Jerry Stuckle<jstucklex(at)attglobal(dot)net> wrote:
>>
>>> On 4/13/2011 2:16 PM, Peter Lauren wrote:
>>>> On Apr 13, 5:25 am, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> > On 4/12/2011 11:33 PM, Peter Lauren wrote:
>>>> >
>>>> >
>>>> >
>>>> >> On Apr 9, 4:29 am, crankypuss<n...@email.thanks> wrote:
>>>> >>> Peter Lauren<peterdlau...@gmail.com> wrote:
>>>> >>>> On Apr 8, 2:01 pm, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> >>>>> On 4/8/2011 1:45 PM, Peter Lauren wrote:
>>>> >
>>>> >>>>>> On Apr 8, 8:04 am, "Mr. B-o-B"<mr.chew.b...@gmail.com> wrote:
>>>> >>>>>>> Peter Lauren cried from the depths of the abyss...
>>>> >
>>>> >>>>>>>> I just noticed that I do have the Wampserver icon on the quick launch
>>>> >>>>>>>> part of the task bar. I do actually get one menu, with the function
>>>> >>>>>>>> you mention, with a a single click of the left button and a smaller
>>>> >>>>>>>> menu, with the Exit function, with a single click of the right. So it
>>>> >>>>>>>> looks like I'm in business.
>>>> >
>>>> >>>>>>> Fantastic.
>>>> >
>>>> >>>>>> Thanks. But I'm still having a problem. I left-click on the task bar
>>>> >>>>>> icon, click on Apache:httpd.conf, and a file opens in notepad. In
>>>> >>>>>> admin. mode, I can edit the file and set
>>>> >>>>>> DocumentRoot "f:/SomeOther/Directory"
>>>> >>>>>> It still uses the .php file in c:\wamp\www
>>>> >
>>>> >>>>>> Thanks,
>>>> >>>>>> Peter.
>>>> >
>>>> >>>>> Did you stop and restart Apache after making the changes? The
>>>> >>>>> configuration file is only run when Apache starts up, not on every request.
>>>> >
>>>> >>>>> --
>>>> >>>>> ==================
>>>> >>>>> Remove the "x" from my email address
>>>> >>>>> Jerry Stuckle
>>>> >>>>> JDS Computer Training Corp.
>>>> >>>>> jstuck...@attglobal.net
>>>> >>>>> ==================
>>>> >
>>>> >>>> I fixed the Forbidden problem. There was a part in the httpd.conf
>>>> >>>> file that said
>>>> >>>> # This should be changed to whatever you set DocumentRoot to.
>>>> >
>>>> >>>> I fixed that and now it works.
>>>> >
>>>> >>>> Still haven't figured out how to get it to work w/o the /localhost/
>>>> >>>> part though
>>>> >
>>>> >>> Depends on what you really want to do. The browser needs a domain to
>>>> >>> send your request to, there's no way I know of to avoid giving it
>>>> >>> *something*.
>>>> >
>>>> >>> Since you're on windows, you can modify your "hosts" file to point
>>>> >>> additional domains at ip-addr 127.0.0.1 if you want. Then you'll need
>>>> >>> to update "httpd.conf" for those domains too. It gets a bit complex
>>>> >>> for me (at least) to attempt to explain here.
>>>> >
>>>> >>> If you can be more explicit about what you really want to do, you're
>>>> >>> more likely to get an answer you can use.
>>>> >
>>>> >>> --
>>>> >>> no aluminum siding offers today
>>>> >
>>>> >> I would like to run PHP and Java code on my own browser and over the
>>>> >> Internet. It will be called from an hyml file that is on my local
>>>> >> PC.
>>>> >
>>>> >> Thanks,
>>>> >> Peter.
>>>> >
>>>> > Browsers don't run PHP or Java code (they can, however, run Javascript
>>>> > code, which is an entirely different animal).
>>>> >
>>>>
>>>> I learned JavaScript before this and did not need a browser as you
>>>> point out. It was when I started using PHP that I found I could not
>>>> see the output on my browser until I installed WAMP and started it
>>>> running. Now I can see the output when WAMP is running so the browser
>>>> would appear to be accessing the server. The server is currently
>>>> offline but I still get the output on my browser.
>>>>
>>>> Thanks,
>>>> Peter.
>>>
>>> The server is not offline.
>>
>> Terminology issue, see below.
>>
>>> It is running, or your browser would get a
>>> connection error message.
>>>
>>> It may not be available to the internet (and should NOT be as others
>>> have pointed out), but it is running.
>>
>> Wampserver uses the term "offline" to mean "not available to the
>> internet". The term "local" might have been more descriptive, but
>> "offline" is the term they chose.
>>
>
> A very poor choice of terminology, IMHO.

Dunno whether I'd agree or not... "not running", "local only",
"internet connected"... could've been lots of terms chosen but they
seem to have picked what they picked. Having found it necessary to
chose a bunch of terms for naming menu-items and the like, my opinion
is that *good* choices are hard to come by. Anyway in
wampserver-speek what "offline" means seems to be "local only".

--
no aluminum siding offers today
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173534 is a reply to message #173442] Mon, 18 April 2011 16:05 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 6:46 am, crankypuss <n...@email.thanks> wrote:
> Peter Lauren <peterdlau...@gmail.com> wrote:
>> On Apr 8, 8:02 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>> On 4/8/2011 7:55 PM, Peter Lauren wrote:
>
>>>> On Apr 8, 2:01 pm, Jerry Stuckle<jstuck...@attglobal.net>  wrote:
>>>> > On 4/8/2011 1:45 PM, Peter Lauren wrote:
>
>>>> >> On Apr 8, 8:04 am, "Mr. B-o-B"<mr.chew.b...@gmail.com>    wrote:
>>>> >>> Peter Lauren cried from the depths of the abyss...
>
>>>> >>>> I just noticed that I do have the Wampserver icon on the quick launch
>>>> >>>> part of the task bar.  I do actually get one menu, with the function
>>>> >>>> you mention, with a a single click of the left button and a smaller
>>>> >>>> menu, with the Exit function, with a single click of the right.  So it
>>>> >>>> looks like I'm in business.
>
>>>> >>> Fantastic.
>
>>>> >> Thanks.  But I'm still having a problem.  I left-click on the task bar
>>>> >> icon, click on Apache:httpd.conf, and a file opens in notepad.  In
>>>> >> admin. mode, I can edit the file and set
>>>> >> DocumentRoot "f:/SomeOther/Directory"
>>>> >> It still uses the .php file in c:\wamp\www
>
>>>> >> Thanks,
>>>> >> Peter.
>
>>>> > Did you stop and restart Apache after making the changes?  The
>>>> > configuration file is only run when Apache starts up, not on every request.
>
>>>> I fixed the Forbidden problem.  There was a part in the httpd.conf
>>>> file that said
>>>> # This should be changed to whatever you set DocumentRoot to.
>
>>>> I fixed that and now it works.
>
>>>> Still haven't figured out how to get it to work w/o the /localhost/
>>>> part though
>
>>> Please read what everyone else has been telling you.
>
>>> YOU CAN'T.
>
>> Seems that everyone except Denis is telling me that but Denis seems to
>> be saying that using localhost will make the code only run on my
>> machine and not over the Internet.  Am I having some sort of mental
>> block here?
>
> Sounds that way to me.
>
> The PHP code you are running on an apache server (via wampserver in
> your case) has to receive http messages that describe a client
> request.  The incoming http messages are what kicks it off---apache
> just sits there listening until it receives a message that is "aimed"
> at your domain; when it receives an http request it runs your PHP code
> and it generates the response message in the form of an html page (or
> whatever it happens to generate, could be a download file for
> example).
>
> You can send the http requests to your server (that is running your
> PHP code) through basically anything that can establish a connection
> to it, for example another server could do it with a socket connection
> to your server's port-80.  But what most "users" use to send the
> requests is a browser.  A browser is mostly rendering engine, most of
> its code revolves around displaying the response messages your (or
> whatever) server generates.
>
> In order to tell the browser where to send the http requests that kick
> the process off, it has to know which of umptyzillion servers on the
> net to send the message to.  You tell it this by typing the server's
> address in the location bar.
>
> Since your server is running as "http:/localhost/" you need to type
> that in or your browser won't send the request to your server.  If you
> set up your server to run as "http:/z/ (for example) then that's what
> you'd need to type in, and you would do that setup within apache's
> configuration file http.conf and you would define the domain "z" using
> the windows "hosts" file.  Or you could use "http://127.0.0.1/" which
> amounts to the same thing but doesn't use symbolic notation.
>
> I'm not a javascript guy, but you *might* be able to run some
> front-end javascript application on your browser that would supply the
> domain name without your having to type it.  I understand that the
> Opera browser offers a lot more customization capability than most so
> you might want to look at it once you get things running.  For that
> matter you could download the source code for FireFox (I think it's
> available) and modify it to create your own browser.
>
> It isn't magic, it's a matter of grasping the context in which your
> PHP code is running.  Your "mental block" seems to be that you want
> the browser to know what server you mean, without telling it.
>
> --
> no aluminum siding offers today

Thank you very much for your replies. I read through your posts, and
the ensuing posts, very carefully and my interpretation is as
follows. The PHP code is running on a server. My PHP code is running
on my server. The server is identified by an IP address which is
"http:/localhost/" for the machine on which the call is made.
Therefore if someone types "http:/localhost/" on some other machine,
they will access the server on their machine if they have one
running. To access the server on my machine, they would need to use
my IP address instead. This is looked up through the Domain Name
System ( DNS). If I was using a web host, like GoDaddy, would it
assign a logical name name to the IP address like www.PetersWebSite.com
instead of 123.456.7.8? Since html is client side, I guess if I had
<a href="http://localhost/PHPTest.php">PHP Test</a> in my html code it
would try to access PHPTest.php on the client's computer instead of
mine. Does that seem right?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173535 is a reply to message #173448] Mon, 18 April 2011 16:19 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 8:20 am, Tim Streater <timstrea...@waitrose.com> wrote:
> In article
> <dcfaef3a-c83d-47e0-8988-bc3a40b2f...@p16g2000vbi.googlegroups.com>,
>  Peter Lauren <peterdlau...@gmail.com> wrote:
>
>> On Apr 9, 6:26 am, Michael Fesser <neti...@gmx.de> wrote:
>>> .oO(Peter Lauren)
>
>>>> Still haven't figured out how to get it to work w/o the /localhost/
>>>> part though
>
>>> Not possible. In order to access your websites via HTTP you have to use
>>> a URL, which has to include a hostname. If you don't like 'localhost',
>>> you can add another one, but it has to be at least one char long. So
>>> even then you would have to use a URL likehttp://x/toaccess your
>>> pages. No HTTP request without a hostname.
>> I have no problem with localhost except that Denis seems to be saying
>> that it won't work over the Internet.   I'm new at this so may be
>> misinterpreting what he is saying.
>
> Yes you are. localhost is the name of your own computer. So, if you're
> trying to reach a web page on your own machine, naturally you'd put:
>
> http://localhost/etc-etc
>
> whereas if the website is on another machine you gives its name instead
> of localhost, as in:
>
> http://example.com/etc-etc
>
> --
> Tim
>
> "That excessive bail ought not to be required, nor excessive fines imposed,
> nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

I think I may be finally getting it. Would example.com be the
logical name assigned to the IP address of the machine I am trying to
access? Is the logical name assigned by a web host like GoDaddy?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173536 is a reply to message #173451] Mon, 18 April 2011 16:44 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 8:29 am, "Mr. B-o-B" <mr.chew.b...@gmail.com> wrote:
> On 4/12/2011 10:31 PM, Peter Lauren wrote:
>
>
>
>> On Apr 8, 8:57 pm, "Mr. B-o-B"<mr.chew.b...@gmail.com>  wrote:
>>> On 4/8/2011 6:55 PM, Peter Lauren wrote:
>
>>>> I fixed the Forbidden problem.  There was a part in the httpd.conf
>>>> file that said
>>>> # This should be changed to whatever you set DocumentRoot to.
>
>>>> I fixed that and now it works.
>
>>>> Still haven't figured out how to get it to work w/o the /localhost/
>>>> part though
>
>>> What everyone is telling you here is true.  You will not be able to drop
>>> the localhost.
>
>>> What is it you are trying to do exactly?  If you want something to run
>>> in your browser w/o a server (aka localhost or whatever) you are in the
>>> wrong group.  You will need to look at a client side language like
>>> javascript.
>
>>> If you are hoping to create a php program that you can just run the only
>>> way I know how to do this is with NUSphere's PHP Dock.
>
>>> http://www.nusphere.com/products/phpdock.htm
>
>>> It will take your php code, and make it into a stand alone application..
>>>    It's not free, but it might be worth it for you.
>>> I have used this at work, and it's pretty slick.
>
>>> Otherwise, you will need to use a server to process your php.  After
>>> all, it is a server side language.
>
>>> Enjoy!
>
>>> Mr. B-o-b
>
>> Hi Bob,
>
>> I would like to be able to run my code (PHP or Java) on my browser and
>> over the Internet.  I may be misinterpreting Denis but he seems to be
>> saying that using localhost will make the code only work on the local
>> machine.  That is the source of my confusion.
>
>> Thanks,
>> Peter.
>
> localhost will resolve to whatever machine you are one.  If you are
> typing localhost on the machine with the webserver/php then you will
> reach the webserver/web files.  If you go to another machine & type
> localhost it will resolve to the machine you are typing this on, and not
> your webserver (page not found).
>
> If you want to access your webserver from another machine, you need to
> use the IP # of your webserver box.  You will need a public IP for
> internet use, and if your IP is static you can register a  domain name &
> setup a dns server, or use one of the many free dns servers available to
> resolve your domain name to the ip.  Then on the internet if someone
> typeswww.yourdomainname.comthen it will resolve to your IP & find the
> sevrer.
>
> This is an extremely generic example, but in a nutshell is how it works.
> If this blows your mind, you might want to take a step back & do a
> little networking 101 reading to help you on your quest.

I've registered a domain name. Would I set up a DNS server though a
web host like GoDaddy or would I be jsut as well using a free DNS
server?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173538 is a reply to message #173534] Mon, 18 April 2011 17:22 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Mon, 18 Apr 2011 09:05:08 -0700, Peter Lauren wrote:

> Thank you very much for your replies. I read through your posts, and
> the ensuing posts, very carefully and my interpretation is as follows.
> The PHP code is running on a server. My PHP code is running on my
> server. The server is identified by an IP address which is
> "http:/localhost/" for the machine on which the call is made. Therefore
> if someone types "http:/localhost/" on some other machine, they will
> access the server on their machine if they have one running. To access
> the server on my machine, they would need to use my IP address instead.
> This is looked up through the Domain Name System ( DNS). If I was using
> a web host, like GoDaddy, would it assign a logical name name to the IP
> address like www.PetersWebSite.com instead of 123.456.7.8? Since html
> is client side, I guess if I had <a
> href="http://localhost/PHPTest.php">PHP Test</a> in my html code it
> would try to access PHPTest.php on the client's computer instead of
> mine. Does that seem right?

Yes. I think you now understand this part of it.

This is why you can not use 'localhost' as the host name inside your web
pages if you want other people to be able to access them, but you can use
'localhost' in the address bar of your browser to tell it to connect to
the server on your machine.

Rgds

Denis McMahon
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173539 is a reply to message #173536] Mon, 18 April 2011 17:25 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren wrote:

> I've registered a domain name. Would I set up a DNS server though a web
> host like GoDaddy or would I be jsut as well using a free DNS server?

Your domain name registrar will usually provide a dns service as part of
the dns registration fee.

Such issues are however well outside of the scope of this newsgroup, and
I'm not even sure where to direct you.

Rgds

Denis McMahon
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173544 is a reply to message #173455] Mon, 18 April 2011 18:27 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 1:46 pm, William Gill <nos...@domain.invalid> wrote:
> On 4/12/2011 11:06 PM, Peter Lauren wrote:
>
>> That's why I use 'href="http://localhost/file.type"'.  I still
>> confused since using localhost local host works (on my local browser
>> at least) but nothing else has so far.  If the html file making the
>> call is on my machine, would it not look for the localhost on my
>> machine?
>
> Peter,
>
> You seem to be in information overload, and confusing what you know,
> what you think you know, and what you don't know you don't know.  Step
> back and look at some of the individual pieces.
>
> First research the difference between "file://" protocol and "http://"
> protocol. hint: one is telling the browser to look directly in the file
> system (bypassing the server).  The other says "ask the server for a
> resource."
>
> Second study how the server translates a url request (received on the
> network) to the file system location of that resource.
>
> Then look up the different reference schemes (i.e. relative v absolute)
> and that may help you see how href="http://localhost/file.type" can be
> "abbreviated" to href="/file.type" or even href="file.type" in some
> occasions.
>
> copy the following and save it as index.php in the folder indicated by
> the DocumentRoot directive of your httpd.conf file. Enter "localhost" in
> your browser and it will help you begin to feel your way around.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html lang="en">
>    <head>
>    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
>    <meta name="generator" content="GCGroup, LLC  -www.gcgroup.net">
>    <link rel="shortcut icon" href="/favicon.ico" />
>    <title>FIND ME</title>
>    </head>
>    <body>
>      Hello <?php echo $_SERVER['REMOTE_ADDR'];?><br>
>      <p>You are here!<br>
>         Document Root: <?php echo $_SERVER['DOCUMENT_ROOT'];?><br>
>         System path:<?php echo $_SERVER['SCRIPT_FILENAME' ]; ?>
>    </body>
> </html>

Hi William,

Thank you very much for your help. I noticed that
$_SERVER['REMOTE_ADDR'];
gives the IP address as 127.0.0.1. Would this be the IP address of
the server and would it give my computer's real IP address if someone
was accessing my server and running this IP script remotely?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173546 is a reply to message #173459] Mon, 18 April 2011 18:29 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 2:33 pm, Tim Streater <timstrea...@waitrose.com> wrote:
> In article
> <bf957449-af4e-4557-ad7d-0df18673f...@m7g2000vbq.googlegroups.com>,
>  Peter Lauren <peterdlau...@gmail.com> wrote:
>
>> I have WAMP set up and running on my PC.  I
>> couldn't get the output of the PHP code to display on my browser
>> before I did that but now it shows up when I call <a href="http:/
>> localhost/Examples.php">PHP</a>.  You it appears that I have a web
>> server running and am accessing it from my browser.  I'm glad I can
>> see the output on the FF browser of my PC but I would like it to be
>> seen across the Internet as well.  What changes would I need to make
>> to do that?
>
> Peter,
>
> You're being unclear as to what you want to do. Which of the following
> is it? You have some web pages you're accessing locally on your own
> computer by using the computer host name localhost. Now:
>
> 1) Do you now want to move your web pages to a distant computer and
> still access them from your own computer?
>
> 2) You want to *leave* the web pages on your *own* computer, but remove
> *yourself* to a distant computer and access them from there?
>
> These are different questions requiring different answers. I don't know
> which one you mean.
>
> --
> Tim
>
> "That excessive bail ought not to be required, nor excessive fines imposed,
> nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

It's the latter. I want people to be able to run programs on my
computer from a distant computer.

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173557 is a reply to message #173460] Mon, 18 April 2011 21:08 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 2:36 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Peter Lauren)
>
>> Thanks for your reply.  I have WAMP set up and running on my PC.  I
>> couldn't get the output of the PHP code to display on my browser
>> before I did that but now it shows up when I call <a href="http:/
>> localhost/Examples.php">PHP</a>.
>
> Good.
>
>> You it appears that I have a web
>> server running and am accessing it from my browser.  I'm glad I can
>> see the output on the FF browser of my PC but I would like it to be
>> seen across the Internet as well.  What changes would I need to make
>> to do that?
>
> As a beginner you definitely don't want to host a public site on your
> own machine! You would have to
>
> * spend a lot of thoughts about how to secure the machine
> * think about and implement a firewall concept
> * get a fast connection (a DSL uplink is not fast)
> * get a dynamic DNS name
> * keep the machine running 24/7
> * …
>
> Additionally, if you don't want to become a part of a botnet:
>
> * follow security mailinglists
> * keep the used software as up-to-date as possible
> * …
>
> The Internet is no playground. If you're not exactly sure about what
> you're doing, don't connect your own server to the Net! It will be an
> invitation for hackers and a huge security risk for yourself and others.
>
> Instead get some cheap hosting package and upload your page to their
> properly maintained server. It will be faster, more reliable and - most
> important - much more secure.
>
> If you just want to show your site to some of your friends every now and
> then, you might want to have a look at VNC or TeamViewer. But if it's
> intended to be public and available 24/7, get a hosting package.
>
> Micha

Hi Michael,

Thank you for your very interesting post. My goal is to run programs
over the Internet as a home business. So it seems I should get a
hosting package. Is there one you would recommend?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173558 is a reply to message #173462] Mon, 18 April 2011 21:10 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 3:12 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 4/13/2011 2:16 PM, Peter Lauren wrote:
>
>
>
>> On Apr 13, 5:25 am, Jerry Stuckle<jstuck...@attglobal.net>  wrote:
>>> On 4/12/2011 11:33 PM, Peter Lauren wrote:
>
>>>> On Apr 9, 4:29 am, crankypuss<n...@email.thanks>    wrote:
>>>> > Peter Lauren<peterdlau...@gmail.com>    wrote:
>>>> >> On Apr 8, 2:01 pm, Jerry Stuckle<jstuck...@attglobal.net>    wrote:
>>>> >>> On 4/8/2011 1:45 PM, Peter Lauren wrote:
>
>>>> >>>> On Apr 8, 8:04 am, "Mr. B-o-B"<mr.chew.b...@gmail.com>    wrote:
>>>> >>>>> Peter Lauren cried from the depths of the abyss...
>
>>>> >>>>>> I just noticed that I do have the Wampserver icon on the quick launch
>>>> >>>>>> part of the task bar. I do actually get one menu, with the function
>>>> >>>>>> you mention, with a a single click of the left button and a smaller
>>>> >>>>>> menu, with the Exit function, with a single click of the right. So it
>>>> >>>>>> looks like I'm in business.
>
>>>> >>>>> Fantastic.
>
>>>> >>>> Thanks. But I'm still having a problem. I left-click on the task bar
>>>> >>>> icon, click on Apache:httpd.conf, and a file opens in notepad. In
>>>> >>>> admin. mode, I can edit the file and set
>>>> >>>> DocumentRoot "f:/SomeOther/Directory"
>>>> >>>> It still uses the .php file in c:\wamp\www
>
>>>> >>>> Thanks,
>>>> >>>> Peter.
>
>>>> >>> Did you stop and restart Apache after making the changes? The
>>>> >>> configuration file is only run when Apache starts up, not on every request.
>
>>>> >>> --
>>>> >>> ==================
>>>> >>> Remove the "x" from my email address
>>>> >>> Jerry Stuckle
>>>> >>> JDS Computer Training Corp.
>>>> >>> jstuck...@attglobal.net
>>>> >>> ==================
>
>>>> >> I fixed the Forbidden problem.  There was a part in the httpd.conf
>>>> >> file that said
>>>> >> # This should be changed to whatever you set DocumentRoot to.
>
>>>> >> I fixed that and now it works.
>
>>>> >> Still haven't figured out how to get it to work w/o the /localhost/
>>>> >> part though
>
>>>> > Depends on what you really want to do.  The browser needs a domain to
>>>> > send your request to, there's no way I know of to avoid giving it
>>>> > *something*.
>
>>>> > Since you're on windows, you can modify your "hosts" file to point
>>>> > additional domains at ip-addr 127.0.0.1 if you want.  Then you'll need
>>>> > to update "httpd.conf" for those domains too.  It gets a bit complex
>>>> > for me (at least) to attempt to explain here.
>
>>>> > If you can be more explicit about what you really want to do, you're
>>>> > more likely to get an answer you can use.
>
>>>> > --
>>>> > no aluminum siding offers today
>
>>>> I would like to run PHP and Java code on my own browser and over the
>>>> Internet.   It will be called from an hyml file that is on my local
>>>> PC.
>
>>>> Thanks,
>>>> Peter.
>
>>> Browsers don't run PHP or Java code (they can, however, run Javascript
>>> code, which is an entirely different animal).
>
>> I learned JavaScript before this and did not need a browser as you
>> point out.  It was when I started using PHP that I found I could not
>> see the output on my browser until I installed WAMP and started it
>> running.  Now I can see the output when WAMP is running so the browser
>> would appear to be accessing the server.  The server is currently
>> offline but I still get the output on my browser.
>
>> Thanks,
>> Peter.
>
> The server is not offline.  It is running, or your browser would get a
> connection error message.
>
> It may not be available to the internet (and should NOT be as others
> have pointed out), but it is running.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

I meant it's not connected to the Internet. The wampserver icon says
"server Offline but I guess that just means it's not connected to the
Internet.

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173559 is a reply to message #173466] Mon, 18 April 2011 21:22 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 13, 4:57 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
> On Tue, 12 Apr 2011 20:33:54 -0700, Peter Lauren wrote:
>> I would like to run PHP and Java code on my own browser and over the
>> Internet.   It will be called from an hyml file that is on my local PC.
>
> You can not run php code on your browser.
>
> php code as you understand it runs in a script processor that operates
> within a web server environment and generates output that that web server
> then delivers to a web browser across an internet connection.
>
> Rgds
>
> Denis McMahon

I understand that now. What I meant was that I would like my code to
run on my machine and on a remote machine and have the output rendered
on my browser and on a remote user's browser. I think I can see why I
cannot use /localhost/ when it is being accessed by a remote user.
Seems I need to provide my IP address through the DNS.

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173560 is a reply to message #173538] Mon, 18 April 2011 21:35 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 18, 1:22 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
> On Mon, 18 Apr 2011 09:05:08 -0700, Peter Lauren wrote:
>> Thank you very much for your replies.  I read through your posts, and
>> the ensuing posts, very carefully and my interpretation is as follows.
>> The PHP code is running on a server.  My PHP code is running on my
>> server.  The server is identified by an IP address which is
>> "http:/localhost/" for the machine on which the call is made. Therefore
>> if someone types "http:/localhost/" on some other machine, they will
>> access the server on their machine if they have one running.  To access
>> the server on my machine, they would need to use my IP address instead.
>> This is looked up through the Domain Name System ( DNS). If I was using
>> a web host, like GoDaddy, would it assign a logical name name to the IP
>> address likewww.PetersWebSite.cominstead of 123.456.7.8?  Since html
>> is client side, I guess if I had <a
>> href="http://localhost/PHPTest.php">PHP Test</a> in my html code it
>> would try to access PHPTest.php on the client's computer instead of
>> mine.  Does that seem right?
>
> Yes. I think you now understand this part of it.
>
> This is why you can not use 'localhost' as the host name inside your web
> pages if you want other people to be able to access them, but you can use
> 'localhost' in the address bar of your browser to tell it to connect to
> the server on your machine.
>
> Rgds
>
> Denis McMahon

Hi Denis,

Thanks for confirming that. From what Michael said, I may just use
wampserver on my PC to test my applications before deploying them and
get a hosting package for deployment.

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173561 is a reply to message #173539] Mon, 18 April 2011 21:37 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 18, 1:25 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren wrote:
>> I've registered a domain name.  Would I set up a DNS server though a web
>> host like GoDaddy or would I be jsut as well using a free DNS server?
>
> Your domain name registrar will usually provide a dns service as part of
> the dns registration fee.
>
> Such issues are however well outside of the scope of this newsgroup, and
> I'm not even sure where to direct you.
>
> Rgds
>
> Denis McMahon

Yes. I guess I'm getting further away, having started fairly
tangentially to begin with. I have a list of hosts so I may contact
them to see if they can provide what I need.

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173562 is a reply to message #173561] Mon, 18 April 2011 23:07 Go to previous messageGo to next message
James Carlock is currently offline  James Carlock
Messages: 3
Registered: April 2011
Karma: 0
Junior Member
"Peter Lauren" <peterdlauren at gmail.com> wrote...
> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
> wrote:
>
> I've registered a domain name. Would I set up a
> DNS server though a web host like GoDaddy or would
> I be jsut as well using a free DNS server?

GoDaddy provides the DNS servers when you buy hosting
through them. They provide a webpage to configure the
DNS servers. NOTE: Every change you make to the DNS
there may take up to 24 hours (or longer) to get
processed. Also, once you make a change to ANY DNS
the server, based on how they (the hosting company)
set up the server and the times they place in the
server, pushes the domain names out to some master
servers.

GoDaddy provides webpages describing how to set up
their DNS (which basically configures a set of IP
their IP addresses to point to your domain name(s)
and vice versa).

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.

Find the "hosts" file in:

%SystemRoot%\system32\drivers\etc

It might take a day or two to get to know how it
all operates but the experience lasts forever.

--
Jim Carlock
http://www.facebook.com/jim.carlock
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173563 is a reply to message #173544] Mon, 18 April 2011 23:15 Go to previous messageGo to next message
William Gill is currently offline  William Gill
Messages: 31
Registered: March 2011
Karma: 0
Member
On 4/18/2011 2:27 PM, Peter Lauren wrote:

> Hi William,
>
> Thank you very much for your help. I noticed that
> $_SERVER['REMOTE_ADDR'];
> gives the IP address as 127.0.0.1. Would this be the IP address of
> the server and would it give my computer's real IP address if someone
> was accessing my server and running this IP script remotely?
>
> Thanks,
> Peter.

No it's the IP of the machine originating the request (think where the
web browser is, not where the resource is). However, in the case of
"localhost" they are the same machine.
take a look at: http://php.net/manual/en/reserved.variables.server.php
to see what else is available. In fact download a copy of the PHP manual
at http://www.php.net/download-docs.php and thrash around a bit.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173564 is a reply to message #173562] Tue, 19 April 2011 00:14 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/18/2011 7:07 PM, James Carlock wrote:
> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>> wrote:
>>
>> I've registered a domain name. Would I set up a
>> DNS server though a web host like GoDaddy or would
>> I be jsut as well using a free DNS server?
>
> GoDaddy provides the DNS servers when you buy hosting
> through them. They provide a webpage to configure the
> DNS servers. NOTE: Every change you make to the DNS
> there may take up to 24 hours (or longer) to get
> processed. Also, once you make a change to ANY DNS
> the server, based on how they (the hosting company)
> set up the server and the times they place in the
> server, pushes the domain names out to some master
> servers.
>
> GoDaddy provides webpages describing how to set up
> their DNS (which basically configures a set of IP
> their IP addresses to point to your domain name(s)
> and vice versa).
>
> 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.
>
> Find the "hosts" file in:
>
> %SystemRoot%\system32\drivers\etc
>
> It might take a day or two to get to know how it
> all operates but the experience lasts forever.
>

Which only works if he has a static IP. Almost all home IP's are
dynamic. As soon as his IP changes, he's out of luck

That's why he needs to be in an appropriate newsgroup for these
questions - he'll get good answers.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173568 is a reply to message #173564] Tue, 19 April 2011 03:05 Go to previous messageGo to next message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma: 0
Member
On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
> On 4/18/2011 7:07 PM, James Carlock wrote:
>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>> wrote:
>>>
>>> I've registered a domain name. Would I set up a
>>> DNS server though a web host like GoDaddy or would
>>> I be jsut as well using a free DNS server?
>>
>> GoDaddy provides the DNS servers when you buy hosting
>> through them. They provide a webpage to configure the
>> DNS servers. NOTE: Every change you make to the DNS
>> there may take up to 24 hours (or longer) to get
>> processed. Also, once you make a change to ANY DNS
>> the server, based on how they (the hosting company)
>> set up the server and the times they place in the
>> server, pushes the domain names out to some master
>> servers.
>>
>> GoDaddy provides webpages describing how to set up
>> their DNS (which basically configures a set of IP
>> their IP addresses to point to your domain name(s)
>> and vice versa).
>>
>> 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.
>>
>> Find the "hosts" file in:
>>
>> %SystemRoot%\system32\drivers\etc
>>
>> It might take a day or two to get to know how it
>> all operates but the experience lasts forever.
>>
>
> Which only works if he has a static IP. Almost all home IP's are
> dynamic. As soon as his IP changes, he's out of luck
>
> That's why he needs to be in an appropriate newsgroup for these
> questions - he'll get good answers.
>

Not entirely true. One can use a service like DynDNS with a dynamic IP
to handle the DNS. There are many clients available (for all flavors of
OS's) that will update the DNS if the IP changes. A lot of cheap soho
routers now come with a dynamic dns client for various dyndns like
services. I have done this at my house for over a decade without any
trouble.

All the OP needs to do is setup an account with anyone of the dyndns
like services, point the godaddy domain name to the dyndns like dns
servers. Easy.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173572 is a reply to message #173557] Tue, 19 April 2011 05:31 Go to previous messageGo to next message
P E Schoen is currently offline  P E Schoen
Messages: 86
Registered: January 2011
Karma: 0
Member
"Peter Lauren" wrote in message
news:9d5ea431-1d49-46fc-8db5-137e517e388c(at)j9g2000prj(dot)googlegroups(dot)com...

> Thank you for your very interesting post. My goal is to run
> programs over the Internet as a home business. So it seems
> I should get a hosting package. Is there one you would recommend?

For a long time I used www.smartnet.com for my ISP as well as a host for my
website. In fact I still have a limited account which has about 100M web
space and incoming email to pstech at smart dot net. I've had Verizon FIOS
for almost two years now and they offer free 10M web space, but no CGI so I
had my SmartNet tech set up the server so I could do that. It was OK for
$99/year, but about a year ago I took a free trial of www.dreamhost.com and
it is a good deal for $9/month. They have an active user forum and also very
responsive technical help. They also have specials and other web services. I
get my domains from www.mydomain.com.

What do you mean by "run programs over the Internet as a home business"?
Assuming you want to make money, you will have to offer a service that is
unique and not available elsewhere for free or dirt cheap. Trying to think
of a "program" that people would pay me for the privilege of running, I can
only come up with something like a PCB design program, where someone may
submit a netlist (or schematic), and an outline drawing with parts placement
information. Then you could have an autorouter on your machine that would
accept the customer's information and produce the complete package of gerber
files and other fabrication documents. It could also offer services such as
BOM generation and parts procurement.

But much of that process usually requires human intervention, although it
may be a lucrative business. Otherwise I don't know of many programs that
people would pay to run. If it is something like a specialized calculator,
it would probably be a candidate for JavaScript, but that is server-side and
the user will have a copy of the code. To avoid that, you could use PHP, but
I don't know what would be unique and valuable enough to pay for. Maybe I'm
missing something...

Paul
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173575 is a reply to message #173560] Tue, 19 April 2011 09:15 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Peter Lauren <peterdlauren(at)gmail(dot)com> wrote:

> On Apr 18, 1:22 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
>> On Mon, 18 Apr 2011 09:05:08 -0700, Peter Lauren wrote:
>>> Thank you very much for your replies.  I read through your posts, and
>>> the ensuing posts, very carefully and my interpretation is as follows.
>>> The PHP code is running on a server.  My PHP code is running on my
>>> server.  The server is identified by an IP address which is
>>> "http:/localhost/" for the machine on which the call is made. Therefore
>>> if someone types "http:/localhost/" on some other machine, they will
>>> access the server on their machine if they have one running.  To access
>>> the server on my machine, they would need to use my IP address instead.
>>> This is looked up through the Domain Name System ( DNS). If I was using
>>> a web host, like GoDaddy, would it assign a logical name name to the IP
>>> address likewww.PetersWebSite.cominstead of 123.456.7.8?  Since html
>>> is client side, I guess if I had <a
>>> href="http://localhost/PHPTest.php">PHP Test</a> in my html code it
>>> would try to access PHPTest.php on the client's computer instead of
>>> mine.  Does that seem right?
>>
>> Yes. I think you now understand this part of it.
>>
>> This is why you can not use 'localhost' as the host name inside your web
>> pages if you want other people to be able to access them, but you can use
>> 'localhost' in the address bar of your browser to tell it to connect to
>> the server on your machine.
>>
>> Rgds
>>
>> Denis McMahon
>
> Hi Denis,
>
> Thanks for confirming that. From what Michael said, I may just use
> wampserver on my PC to test my applications before deploying them and
> get a hosting package for deployment.

Using wampserver for development and initial testing seems to be
fairly workable.

Don't be in too much of a hurry to go "live" though. There is a good
deal you can learn about apache and so forth while using wampserver.

When you decide it's time for a public site, be careful about choosing
your web host. Different people need different levels of support from
their hosting provider, different hosting providers offer different
levels of hardware and automatic backup support, different amounts of
bandwidth, and so forth and so on nearly forever. If you expect your
site to become huge you need a hosting provider that can handle
hugeness, but then everybody expects to become rich overnight and it
seldom happens. And of course every hosting company offers different
packages at different prices.

Before you even register a domain name, I would suggest that you learn
what you can about the whole webmastering subject. The
alt.www.webmaster usenet group is a reasonable place to ask about
choosing a domain registrar, hosting company, handling search-engine
optimization, and so forth. There are some people participating there
who are knowledgable on the issues you need to learn about. There are
doubtless websites where you could go to read a tutorial about that
subject but offhand I can't suggest one.

As far as starting a business goes, there are a zillion issues that
should be considered before taking the first step. I think nobody
ever starts out knowing half of the gotchas they will have to deal
with. Remember that the idea of a business is for the money to move
in your direction, not the other way, because everybody will have
their hand out for this and for that.

--
no aluminum siding offers today
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173576 is a reply to message #173559] Tue, 19 April 2011 09:42 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Peter Lauren <peterdlauren(at)gmail(dot)com> wrote:

> On Apr 13, 4:57 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
>> On Tue, 12 Apr 2011 20:33:54 -0700, Peter Lauren wrote:
>>> I would like to run PHP and Java code on my own browser and over the
>>> Internet.   It will be called from an hyml file that is on my local PC.
>>
>> You can not run php code on your browser.
>>
>> php code as you understand it runs in a script processor that operates
>> within a web server environment and generates output that that web server
>> then delivers to a web browser across an internet connection.
>>
>> Rgds
>>
>> Denis McMahon
>
> I understand that now. What I meant was that I would like my code to
> run on my machine and on a remote machine and have the output rendered
> on my browser and on a remote user's browser.

I suspect that you mean "run on my machine OR on a remote machine".

Since http is a point-to-point protocol, having the output for a given
request rendered on two browsers ("on my browser and on a remote
user's browser") is fairly difficult and requires a good bit of custom
server coding.

--
no aluminum siding offers today
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173577 is a reply to message #173535] Tue, 19 April 2011 09:42 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Peter Lauren <peterdlauren(at)gmail(dot)com> wrote:

> On Apr 13, 8:20 am, Tim Streater <timstrea...@waitrose.com> wrote:
>> In article
>> <dcfaef3a-c83d-47e0-8988-bc3a40b2f...@p16g2000vbi.googlegroups.com>,
>>  Peter Lauren <peterdlau...@gmail.com> wrote:
>>
>>> On Apr 9, 6:26 am, Michael Fesser <neti...@gmx.de> wrote:
>>>> .oO(Peter Lauren)
>>
>>>> >Still haven't figured out how to get it to work w/o the /localhost/
>>>> >part though
>>
>>>> Not possible. In order to access your websites via HTTP you have to use
>>>> a URL, which has to include a hostname. If you don't like 'localhost',
>>>> you can add another one, but it has to be at least one char long. So
>>>> even then you would have to use a URL likehttp://x/toaccess your
>>>> pages. No HTTP request without a hostname.
>>> I have no problem with localhost except that Denis seems to be saying
>>> that it won't work over the Internet.   I'm new at this so may be
>>> misinterpreting what he is saying.
>>
>> Yes you are. localhost is the name of your own computer. So, if you're
>> trying to reach a web page on your own machine, naturally you'd put:
>>
>> http://localhost/etc-etc
>>
>> whereas if the website is on another machine you gives its name instead
>> of localhost, as in:
>>
>> http://example.com/etc-etc
>>
>> --
>> Tim
>>
>> "That excessive bail ought not to be required, nor excessive fines imposed,
>> nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689
>
> I think I may be finally getting it. Would example.com be the
> logical name assigned to the IP address of the machine I am trying to
> access?

Yes, domain names are symbolic names associated with ip-addresses.

> Is the logical name assigned by a web host like GoDaddy?

No, domain names are not assigned by web hosts, they are assigned by
domain name registrars (terminology).

GoDaddy coincidentally happens to provide both services, but hosting
services need not also be registrars.

Most people feel it unwise to have hosting provided by the same
company that is your registrar. The real issue (imo) is that you be
able to trust your domain name registrar, not that they necessarily be
different companies; you can always move your hosting.

We're well out of the PHP topic area here, for discussions about
hosting and suchlike I suggest alt.www.webmaster

--
no aluminum siding offers today
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173578 is a reply to message #173568] Tue, 19 April 2011 10:03 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> wrote:
>>>>
>>>> I've registered a domain name. Would I set up a
>>>> DNS server though a web host like GoDaddy or would
>>>> I be jsut as well using a free DNS server?
>>>
>>> GoDaddy provides the DNS servers when you buy hosting
>>> through them. They provide a webpage to configure the
>>> DNS servers. NOTE: Every change you make to the DNS
>>> there may take up to 24 hours (or longer) to get
>>> processed. Also, once you make a change to ANY DNS
>>> the server, based on how they (the hosting company)
>>> set up the server and the times they place in the
>>> server, pushes the domain names out to some master
>>> servers.
>>>
>>> GoDaddy provides webpages describing how to set up
>>> their DNS (which basically configures a set of IP
>>> their IP addresses to point to your domain name(s)
>>> and vice versa).
>>>
>>> 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.
>>>
>>> Find the "hosts" file in:
>>>
>>> %SystemRoot%\system32\drivers\etc
>>>
>>> It might take a day or two to get to know how it
>>> all operates but the experience lasts forever.
>>>
>>
>> Which only works if he has a static IP. Almost all home IP's are
>> dynamic. As soon as his IP changes, he's out of luck
>>
>> That's why he needs to be in an appropriate newsgroup for these
>> questions - he'll get good answers.
>>
>
> Not entirely true. One can use a service like DynDNS with a dynamic IP
> to handle the DNS. There are many clients available (for all flavors of
> OS's) that will update the DNS if the IP changes. A lot of cheap soho
> routers now come with a dynamic dns client for various dyndns like
> services. I have done this at my house for over a decade without any
> trouble.
>
> All the OP needs to do is setup an account with anyone of the dyndns
> like services, point the godaddy domain name to the dyndns like dns
> servers. Easy.

But GoDaddy isn't DynDNS, is it? Try reading the questions.

And this is another perfect example of why I recommend people take
off-topic questions to an appropriate newsgroup. There are so many
potential problems with running from home that I wouldn't even think of
it for any semi-serious website. But I'm not going into the reasons
here because it's off topic.

The op would be well advised to try an appropriate newsgroup such as
alt.www.webmaster, where he'll get GOOD answers.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173580 is a reply to message #173578] Tue, 19 April 2011 11:50 Go to previous messageGo to next message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma: 0
Member
On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> > On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> > wrote:
>>>> >
>>>> > I've registered a domain name. Would I set up a
>>>> > DNS server though a web host like GoDaddy or would
>>>> > I be jsut as well using a free DNS server?
>>>>
>>>> GoDaddy provides the DNS servers when you buy hosting
>>>> through them. They provide a webpage to configure the
>>>> DNS servers. NOTE: Every change you make to the DNS
>>>> there may take up to 24 hours (or longer) to get
>>>> processed. Also, once you make a change to ANY DNS
>>>> the server, based on how they (the hosting company)
>>>> set up the server and the times they place in the
>>>> server, pushes the domain names out to some master
>>>> servers.
>>>>
>>>> GoDaddy provides webpages describing how to set up
>>>> their DNS (which basically configures a set of IP
>>>> their IP addresses to point to your domain name(s)
>>>> and vice versa).
>>>>
>>>> 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.
>>>>
>>>> Find the "hosts" file in:
>>>>
>>>> %SystemRoot%\system32\drivers\etc
>>>>
>>>> It might take a day or two to get to know how it
>>>> all operates but the experience lasts forever.
>>>>
>>>
>>> Which only works if he has a static IP. Almost all home IP's are
>>> dynamic. As soon as his IP changes, he's out of luck
>>>
>>> That's why he needs to be in an appropriate newsgroup for these
>>> questions - he'll get good answers.
>>>
>>
>> Not entirely true. One can use a service like DynDNS with a dynamic IP
>> to handle the DNS. There are many clients available (for all flavors of
>> OS's) that will update the DNS if the IP changes. A lot of cheap soho
>> routers now come with a dynamic dns client for various dyndns like
>> services. I have done this at my house for over a decade without any
>> trouble.
>>
>> All the OP needs to do is setup an account with anyone of the dyndns
>> like services, point the godaddy domain name to the dyndns like dns
>> servers. Easy.
>
> But GoDaddy isn't DynDNS, is it? Try reading the questions.

No it's not. It's a domain register. As I said, point the godaddy
domain to DynDns.... Try reading the answer next time.

>
> And this is another perfect example of why I recommend people take
> off-topic questions to an appropriate newsgroup. There are so many
> potential problems with running from home that I wouldn't even think of
> it for any semi-serious website. But I'm not going into the reasons here
> because it's off topic.
>
> The op would be well advised to try an appropriate newsgroup such as
> alt.www.webmaster, where he'll get GOOD answers.
>
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173581 is a reply to message #173577] Tue, 19 April 2011 14:36 Go to previous messageGo to next message
William Gill is currently offline  William Gill
Messages: 31
Registered: March 2011
Karma: 0
Member
On 4/19/2011 5:42 AM, crankypuss wrote:
>
> Yes, domain names are symbolic names associated with ip-addresses.
>
>> Is the logical name assigned by a web host like GoDaddy?
>
> No, domain names are not assigned by web hosts, they are assigned by
> domain name registrars (terminology).
>
> GoDaddy coincidentally happens to provide both services, but hosting
> services need not also be registrars.
>
> Most people feel it unwise to have hosting provided by the same
> company that is your registrar. The real issue (imo) is that you be
> able to trust your domain name registrar, not that they necessarily be
> different companies; you can always move your hosting.
>
> We're well out of the PHP topic area here, for discussions about
> hosting and suchlike I suggest alt.www.webmaster
>

I'm replying to crankypuss' message because it is the clearest place,
but this is directed to Peter.

registrar == "keeper(s) of the names"
Just like when you get an LLC, or DBA; you pick a name; the "keepers"
check to see if it's available; if so you register it (lease the right
to use it)

Host / hosting company == "internet landlord"
Your internet landlord rents you physical space for your stuff
(website), and maintains a "building directory" (DNS) telling people
where exactly your stuff is.

The "keeper(s) of the names" asks you for your (your landlord's) DNS
server name and address ( your "building directory"). The keepers then
provide that information to the DNS root servers, and keep other
information in their whois server.

Root DNS servers don't keep a list of addresses (building directories).
They keep a list of address lists (where to find the building
directories).

When a user types peter.example.com into his browser, the browser says
"???" ; then asks one of the root servers (who maintain a list of all
the building directories for the ".com" part of peter.example.com "where
do I begin?"; the root server says "Ask Peter's hosting company at
xxx.xxx.xxx.xxx"

Now, and don't take offense at this Peter, you have exhibited a serious
lack of sophistication regarding this whole thing. Hackers and other
malevolent inhabitants of the internet do not share that naiveté.

The people here have been helpful in providing you enough information to
get you into some serious trouble. Please, do some studying, and try to
understand what's happening and why in a safe environment e.g. a
development server on your localhost BEFORE you go on the air.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173584 is a reply to message #173581] Tue, 19 April 2011 17:46 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
William Gill wrote:

>
> When a user types peter.example.com into his browser, the browser says
> "???" ; then asks one of the root servers (who maintain a list of all
> the building directories for the ".com" part of peter.example.com "where
> do I begin?"; the root server says "Ask Peter's hosting company at
> xxx.xxx.xxx.xxx"
>

No. The browser does NOT do that. The browser sends a request to
whatever DNS server its configured to look up and the DNS server does
all that, and relays the answer back


> Now, and don't take offense at this Peter, you have exhibited a serious
> lack of sophistication regarding this whole thing. Hackers and other
> malevolent inhabitants of the internet do not share that naiveté.
>
> The people here have been helpful in providing you enough information to
> get you into some serious trouble. Please, do some studying, and try to
> understand what's happening and why in a safe environment e.g. a
> development server on your localhost BEFORE you go on the air.
>
>
And peter, remember that people who assure you they knwo what they are
talking about may in fact not know any more than you do..:-)
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173585 is a reply to message #173584] Tue, 19 April 2011 20:32 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Tue, 19 Apr 2011 18:46:01 +0100, The Natural Philosopher wrote:

> William Gill wrote:

>> When a user types peter.example.com into his browser, the browser says
>> "???" ; then asks one of the root servers (who maintain a list of all
>> the building directories for the ".com" part of peter.example.com
>> "where do I begin?"; the root server says "Ask Peter's hosting company
>> at xxx.xxx.xxx.xxx"

> No. The browser does NOT do that. The browser sends a request to
> whatever DNS server its configured to look up and the DNS server does
> all that, and relays the answer back

WRONG. The browser asks the local resolver, which is usually a process
running on the same system. The local resolver then does the lookup
according to it's configuration and settings (which may be defined by dhcp
settings, or may be statically configured) and returns an answer to the
browser.

> And peter, remember that people who assure you they knwo what they are
> talking about may in fact not know any more than you do..:-)

You certainly proved that one today.

Rgds

Denis McMahon
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173586 is a reply to message #173585] Tue, 19 April 2011 20:35 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article <4dadf161$0$14017$bed64819(at)gradwell(dot)net>,
Denis McMahon <denis(dot)m(dot)f(dot)mcmahon(at)gmail(dot)com> wrote:

> On Tue, 19 Apr 2011 18:46:01 +0100, The Natural Philosopher wrote:
>
>> William Gill wrote:
>
>>> When a user types peter.example.com into his browser, the browser says
>>> "???" ; then asks one of the root servers (who maintain a list of all
>>> the building directories for the ".com" part of peter.example.com
>>> "where do I begin?"; the root server says "Ask Peter's hosting company
>>> at xxx.xxx.xxx.xxx"
>
>> No. The browser does NOT do that. The browser sends a request to
>> whatever DNS server its configured to look up and the DNS server does
>> all that, and relays the answer back
>
> WRONG. The browser asks the local resolver, which is usually a process
> running on the same system. The local resolver then does the lookup
> according to it's configuration and settings (which may be defined by dhcp
> settings, or may be statically configured) and returns an answer to the
> browser.

The browser only makes the one request and gets an answer back. This in
the worst case may involve a series of requests being made on its behalf
up the hierarchy. It depends how much stuff has been cached.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173587 is a reply to message #173585] Tue, 19 April 2011 21:19 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Denis McMahon wrote:
> On Tue, 19 Apr 2011 18:46:01 +0100, The Natural Philosopher wrote:
>
>> William Gill wrote:
>
>>> When a user types peter.example.com into his browser, the browser says
>>> "???" ; then asks one of the root servers (who maintain a list of all
>>> the building directories for the ".com" part of peter.example.com
>>> "where do I begin?"; the root server says "Ask Peter's hosting company
>>> at xxx.xxx.xxx.xxx"
>
>> No. The browser does NOT do that. The browser sends a request to
>> whatever DNS server its configured to look up and the DNS server does
>> all that, and relays the answer back
>
> WRONG. The browser asks the local resolver, which is usually a process
> running on the same system. The local resolver then does the lookup
> according to it's configuration and settings (which may be defined by dhcp
> settings, or may be statically configured) and returns an answer to the
> browser.
>
WRONG.

The 'resolver is normally a library that is either DLL or statically
linked to the browser.

The resolver knows nothing about root level domains.

Unless you are runing locale DNS server like BIND the resolver at best
knows a where a DNS server it can query exists.

If every resolver on the planet asked the root servers where to go,
they would die in milliseconds.

Fortunately DNS is a cacheing hierachical system. So they very seldom do.

>> And peter, remember that people who assure you they knwo what they are
>> talking about may in fact not know any more than you do..:-)
>
> You certainly proved that one today.

And you have doubly assured ebveryone of it.

Wiki says it esier than typing it in

Client lookup
DNS resolution sequence

Users generally do not communicate directly with a DNS resolver. Instead
DNS resolution takes place transparently in applications programs such
as web browsers, e-mail clients, and other Internet applications. When
an application makes a request that requires a domain name lookup, such
programs send a resolution request to the DNS resolver in the local
operating system, which in turn handles the communications required.

The DNS resolver will almost invariably have a cache (see above)
containing recent lookups. If the cache can provide the answer to the
request, the resolver will return the value in the cache to the program
that made the request. If the cache does not contain the answer, *the
resolver will send the request to one or more designated DNS servers. In
the case of most home users, the Internet service provider to which the
machine connects will usually supply this DNS server: such a user will
either have configured that server's address manually or allowed DHCP to
set it*; however, where systems administrators have configured systems
to use their own DNS servers, their DNS resolvers point to separately
maintained nameservers of the organization. In any event, the name
server thus queried will follow the process outlined above, until it
either successfully finds a result or does not. It then returns its
results to the DNS resolver; assuming it has found a result, the
resolver duly caches that result for future use, and hands the result
back to the software which initiated the request.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173588 is a reply to message #173580] Tue, 19 April 2011 23:52 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
> On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> > "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >> wrote:
>>>> >>
>>>> >> I've registered a domain name. Would I set up a
>>>> >> DNS server though a web host like GoDaddy or would
>>>> >> I be jsut as well using a free DNS server?
>>>> >
>>>> > GoDaddy provides the DNS servers when you buy hosting
>>>> > through them. They provide a webpage to configure the
>>>> > DNS servers. NOTE: Every change you make to the DNS
>>>> > there may take up to 24 hours (or longer) to get
>>>> > processed. Also, once you make a change to ANY DNS
>>>> > the server, based on how they (the hosting company)
>>>> > set up the server and the times they place in the
>>>> > server, pushes the domain names out to some master
>>>> > servers.
>>>> >
>>>> > GoDaddy provides webpages describing how to set up
>>>> > their DNS (which basically configures a set of IP
>>>> > their IP addresses to point to your domain name(s)
>>>> > and vice versa).
>>>> >
>>>> > 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.
>>>> >
>>>> > Find the "hosts" file in:
>>>> >
>>>> > %SystemRoot%\system32\drivers\etc
>>>> >
>>>> > It might take a day or two to get to know how it
>>>> > all operates but the experience lasts forever.
>>>> >
>>>>
>>>> Which only works if he has a static IP. Almost all home IP's are
>>>> dynamic. As soon as his IP changes, he's out of luck
>>>>
>>>> That's why he needs to be in an appropriate newsgroup for these
>>>> questions - he'll get good answers.
>>>>
>>>
>>> Not entirely true. One can use a service like DynDNS with a dynamic IP
>>> to handle the DNS. There are many clients available (for all flavors of
>>> OS's) that will update the DNS if the IP changes. A lot of cheap soho
>>> routers now come with a dynamic dns client for various dyndns like
>>> services. I have done this at my house for over a decade without any
>>> trouble.
>>>
>>> All the OP needs to do is setup an account with anyone of the dyndns
>>> like services, point the godaddy domain name to the dyndns like dns
>>> servers. Easy.
>>
>> But GoDaddy isn't DynDNS, is it? Try reading the questions.
>
> No it's not. It's a domain register. As I said, point the godaddy domain
> to DynDns.... Try reading the answer next time.
>

Oh, I read your post. It's as full of crap as most of the rest of them
are. First of all, you assume he's using godaddy. There are much
better registrars out there.

And you didn't even bother to respond to the rest of my points - because
you know I'm right.

But that's pretty normal for you.



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173589 is a reply to message #173584] Tue, 19 April 2011 23:52 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/19/2011 1:46 PM, The Natural Philosopher wrote:
> William Gill wrote:
>
>>
>> When a user types peter.example.com into his browser, the browser says
>> "???" ; then asks one of the root servers (who maintain a list of all
>> the building directories for the ".com" part of peter.example.com
>> "where do I begin?"; the root server says "Ask Peter's hosting company
>> at xxx.xxx.xxx.xxx"
>>
>
> No. The browser does NOT do that. The browser sends a request to
> whatever DNS server its configured to look up and the DNS server does
> all that, and relays the answer back
>
>
>> Now, and don't take offense at this Peter, you have exhibited a
>> serious lack of sophistication regarding this whole thing. Hackers and
>> other malevolent inhabitants of the internet do not share that naiveté.
>>
>> The people here have been helpful in providing you enough information
>> to get you into some serious trouble. Please, do some studying, and
>> try to understand what's happening and why in a safe environment e.g.
>> a development server on your localhost BEFORE you go on the air.
>>
>>
> And peter, remember that people who assure you they knwo what they are
> talking about may in fact not know any more than you do..:-)
>

A perfect example right here...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173590 is a reply to message #173562] Wed, 20 April 2011 01:59 Go to previous messageGo to next message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma: 0
Member
On Apr 18, 7:07 pm, "James Carlock" <jcarlo...@somemail.com> wrote:
> "Peter Lauren" <peterdlauren at gmail.com> wrote...
>
>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>> wrote:
>
>> I've registered a domain name. Would I set up a
>> DNS server though a web host like GoDaddy or would
>> I be jsut as well using a free DNS server?
>
> GoDaddy provides the DNS servers when you buy hosting
> through them. They provide a webpage to configure the
> DNS servers. NOTE: Every change you make to the DNS
> there may take up to 24 hours (or longer) to get
> processed. Also, once you make a change to ANY DNS
> the server, based on how they (the hosting company)
> set up the server and the times they place in the
> server, pushes the domain names out to some master
> servers.
>

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? One concern that I do
have is storage since I will need to store and process several very
large files.

> GoDaddy provides webpages describing how to set up
> their DNS (which basically configures a set of IP
> their IP addresses to point to your domain name(s)
> and vice versa).
>
> 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.

Currently 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?

Thanks,
Peter.
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173591 is a reply to message #173588] Wed, 20 April 2011 02:00 Go to previous messageGo to next message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma: 0
Member
On 4/19/2011 6:52 PM, Jerry Stuckle cried from the depths of the abyss:
> On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
>> On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>>> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>>> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> > On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> >> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >>> wrote:
>>>> >>>
>>>> >>> I've registered a domain name. Would I set up a
>>>> >>> DNS server though a web host like GoDaddy or would
>>>> >>> I be jsut as well using a free DNS server?
>>>> >>
>>>> >> GoDaddy provides the DNS servers when you buy hosting
>>>> >> through them. They provide a webpage to configure the
>>>> >> DNS servers. NOTE: Every change you make to the DNS
>>>> >> there may take up to 24 hours (or longer) to get
>>>> >> processed. Also, once you make a change to ANY DNS
>>>> >> the server, based on how they (the hosting company)
>>>> >> set up the server and the times they place in the
>>>> >> server, pushes the domain names out to some master
>>>> >> servers.
>>>> >>
>>>> >> GoDaddy provides webpages describing how to set up
>>>> >> their DNS (which basically configures a set of IP
>>>> >> their IP addresses to point to your domain name(s)
>>>> >> and vice versa).
>>>> >>
>>>> >> 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.
>>>> >>
>>>> >> Find the "hosts" file in:
>>>> >>
>>>> >> %SystemRoot%\system32\drivers\etc
>>>> >>
>>>> >> It might take a day or two to get to know how it
>>>> >> all operates but the experience lasts forever.
>>>> >>
>>>> >
>>>> > Which only works if he has a static IP. Almost all home IP's are
>>>> > dynamic. As soon as his IP changes, he's out of luck
>>>> >
>>>> > That's why he needs to be in an appropriate newsgroup for these
>>>> > questions - he'll get good answers.
>>>> >
>>>>
>>>> Not entirely true. One can use a service like DynDNS with a dynamic IP
>>>> to handle the DNS. There are many clients available (for all flavors of
>>>> OS's) that will update the DNS if the IP changes. A lot of cheap soho
>>>> routers now come with a dynamic dns client for various dyndns like
>>>> services. I have done this at my house for over a decade without any
>>>> trouble.
>>>>
>>>> All the OP needs to do is setup an account with anyone of the dyndns
>>>> like services, point the godaddy domain name to the dyndns like dns
>>>> servers. Easy.
>>>
>>> But GoDaddy isn't DynDNS, is it? Try reading the questions.
>>
>> No it's not. It's a domain register. As I said, point the godaddy domain
>> to DynDns.... Try reading the answer next time.
>>
>
> Oh, I read your post. It's as full of crap as most of the rest of them
> are. First of all, you assume he's using godaddy. There are much better
> registrars out there.
>
> And you didn't even bother to respond to the rest of my points - because
> you know I'm right.
>
> But that's pretty normal for you.

Yawn...
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173592 is a reply to message #173591] Wed, 20 April 2011 02:12 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/19/2011 10:00 PM, Mr. B-o-B wrote:
> On 4/19/2011 6:52 PM, Jerry Stuckle cried from the depths of the abyss:
>> On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
>>> On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>>>> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>>> > On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> >> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> >>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >>>> wrote:
>>>> >>>>
>>>> >>>> I've registered a domain name. Would I set up a
>>>> >>>> DNS server though a web host like GoDaddy or would
>>>> >>>> I be jsut as well using a free DNS server?
>>>> >>>
>>>> >>> GoDaddy provides the DNS servers when you buy hosting
>>>> >>> through them. They provide a webpage to configure the
>>>> >>> DNS servers. NOTE: Every change you make to the DNS
>>>> >>> there may take up to 24 hours (or longer) to get
>>>> >>> processed. Also, once you make a change to ANY DNS
>>>> >>> the server, based on how they (the hosting company)
>>>> >>> set up the server and the times they place in the
>>>> >>> server, pushes the domain names out to some master
>>>> >>> servers.
>>>> >>>
>>>> >>> GoDaddy provides webpages describing how to set up
>>>> >>> their DNS (which basically configures a set of IP
>>>> >>> their IP addresses to point to your domain name(s)
>>>> >>> and vice versa).
>>>> >>>
>>>> >>> 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.
>>>> >>>
>>>> >>> Find the "hosts" file in:
>>>> >>>
>>>> >>> %SystemRoot%\system32\drivers\etc
>>>> >>>
>>>> >>> It might take a day or two to get to know how it
>>>> >>> all operates but the experience lasts forever.
>>>> >>>
>>>> >>
>>>> >> Which only works if he has a static IP. Almost all home IP's are
>>>> >> dynamic. As soon as his IP changes, he's out of luck
>>>> >>
>>>> >> That's why he needs to be in an appropriate newsgroup for these
>>>> >> questions - he'll get good answers.
>>>> >>
>>>> >
>>>> > Not entirely true. One can use a service like DynDNS with a dynamic IP
>>>> > to handle the DNS. There are many clients available (for all
>>>> > flavors of
>>>> > OS's) that will update the DNS if the IP changes. A lot of cheap soho
>>>> > routers now come with a dynamic dns client for various dyndns like
>>>> > services. I have done this at my house for over a decade without any
>>>> > trouble.
>>>> >
>>>> > All the OP needs to do is setup an account with anyone of the dyndns
>>>> > like services, point the godaddy domain name to the dyndns like dns
>>>> > servers. Easy.
>>>>
>>>> But GoDaddy isn't DynDNS, is it? Try reading the questions.
>>>
>>> No it's not. It's a domain register. As I said, point the godaddy domain
>>> to DynDns.... Try reading the answer next time.
>>>
>>
>> Oh, I read your post. It's as full of crap as most of the rest of them
>> are. First of all, you assume he's using godaddy. There are much better
>> registrars out there.
>>
>> And you didn't even bother to respond to the rest of my points - because
>> you know I'm right.
>>
>> But that's pretty normal for you.
>
> Yawn...
>

Most intelligent thing you've said in this newsgroup yet.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173593 is a reply to message #173584] Wed, 20 April 2011 02:15 Go to previous messageGo to next message
William Gill is currently offline  William Gill
Messages: 31
Registered: March 2011
Karma: 0
Member
On 4/19/2011 1:46 PM, The Natural Philosopher wrote:
> William Gill wrote:
>
>>
>> When a user types peter.example.com into his browser, the browser says
>> "???" ; then asks one of the root servers (who maintain a list of all
>> the building directories for the ".com" part of peter.example.com
>> "where do I begin?"; the root server says "Ask Peter's hosting company
>> at xxx.xxx.xxx.xxx"
>>
>
> No. The browser does NOT do that. The browser sends a request to
> whatever DNS server its configured to look up and the DNS server does
> all that, and relays the answer back

>
>>
> And peter, remember that people who assure you they knwo what they are
> talking about may in fact not know any more than you do..:-)
>

You are correct, the browser doesn't communicate directly with the root
servers, but as Tim mentions, it is done on the browser's behalf until
ultimately the browser gets its answer.

My question then is this: Does splitting that particular hair of the
name resolution mechanics do more to clarify things for Peter, who had
some initial difficulty grasping localhost, registrar, and hosting
company, or does it serve more as an opportunity to show how smart you
think you are?
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173594 is a reply to message #173592] Wed, 20 April 2011 02:27 Go to previous messageGo to next message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma: 0
Member
On 4/19/2011 9:12 PM, Jerry Stuckle cried from the depths of the abyss:
> On 4/19/2011 10:00 PM, Mr. B-o-B wrote:
>> On 4/19/2011 6:52 PM, Jerry Stuckle cried from the depths of the abyss:
>>> On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
>>>> On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>>>> > On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>>> >> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> >>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> >>>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >>>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >>>>> wrote:
>>>> >>>>>
>>>> >>>>> I've registered a domain name. Would I set up a
>>>> >>>>> DNS server though a web host like GoDaddy or would
>>>> >>>>> I be jsut as well using a free DNS server?
>>>> >>>>
>>>> >>>> GoDaddy provides the DNS servers when you buy hosting
>>>> >>>> through them. They provide a webpage to configure the
>>>> >>>> DNS servers. NOTE: Every change you make to the DNS
>>>> >>>> there may take up to 24 hours (or longer) to get
>>>> >>>> processed. Also, once you make a change to ANY DNS
>>>> >>>> the server, based on how they (the hosting company)
>>>> >>>> set up the server and the times they place in the
>>>> >>>> server, pushes the domain names out to some master
>>>> >>>> servers.
>>>> >>>>
>>>> >>>> GoDaddy provides webpages describing how to set up
>>>> >>>> their DNS (which basically configures a set of IP
>>>> >>>> their IP addresses to point to your domain name(s)
>>>> >>>> and vice versa).
>>>> >>>>
>>>> >>>> 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.
>>>> >>>>
>>>> >>>> Find the "hosts" file in:
>>>> >>>>
>>>> >>>> %SystemRoot%\system32\drivers\etc
>>>> >>>>
>>>> >>>> It might take a day or two to get to know how it
>>>> >>>> all operates but the experience lasts forever.
>>>> >>>>
>>>> >>>
>>>> >>> Which only works if he has a static IP. Almost all home IP's are
>>>> >>> dynamic. As soon as his IP changes, he's out of luck
>>>> >>>
>>>> >>> That's why he needs to be in an appropriate newsgroup for these
>>>> >>> questions - he'll get good answers.
>>>> >>>
>>>> >>
>>>> >> Not entirely true. One can use a service like DynDNS with a
>>>> >> dynamic IP
>>>> >> to handle the DNS. There are many clients available (for all
>>>> >> flavors of
>>>> >> OS's) that will update the DNS if the IP changes. A lot of cheap soho
>>>> >> routers now come with a dynamic dns client for various dyndns like
>>>> >> services. I have done this at my house for over a decade without any
>>>> >> trouble.
>>>> >>
>>>> >> All the OP needs to do is setup an account with anyone of the dyndns
>>>> >> like services, point the godaddy domain name to the dyndns like dns
>>>> >> servers. Easy.
>>>> >
>>>> > But GoDaddy isn't DynDNS, is it? Try reading the questions.
>>>>
>>>> No it's not. It's a domain register. As I said, point the godaddy
>>>> domain
>>>> to DynDns.... Try reading the answer next time.
>>>>
>>>
>>> Oh, I read your post. It's as full of crap as most of the rest of them
>>> are. First of all, you assume he's using godaddy. There are much better
>>> registrars out there.
>>>
>>> And you didn't even bother to respond to the rest of my points - because
>>> you know I'm right.
>>>
>>> But that's pretty normal for you.
>>
>> Yawn...
>>
>
> Most intelligent thing you've said in this newsgroup yet.
>

Dance Jerry Dance...LOL
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173595 is a reply to message #173594] Wed, 20 April 2011 02:58 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 4/19/2011 10:27 PM, Mr. B-o-B wrote:
> On 4/19/2011 9:12 PM, Jerry Stuckle cried from the depths of the abyss:
>> On 4/19/2011 10:00 PM, Mr. B-o-B wrote:
>>> On 4/19/2011 6:52 PM, Jerry Stuckle cried from the depths of the abyss:
>>>> On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
>>>> > On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>>>> >> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>>> >>> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> >>>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> >>>>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >>>>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >>>>>> wrote:
>>>> >>>>>>
>>>> >>>>>> I've registered a domain name. Would I set up a
>>>> >>>>>> DNS server though a web host like GoDaddy or would
>>>> >>>>>> I be jsut as well using a free DNS server?
>>>> >>>>>
>>>> >>>>> GoDaddy provides the DNS servers when you buy hosting
>>>> >>>>> through them. They provide a webpage to configure the
>>>> >>>>> DNS servers. NOTE: Every change you make to the DNS
>>>> >>>>> there may take up to 24 hours (or longer) to get
>>>> >>>>> processed. Also, once you make a change to ANY DNS
>>>> >>>>> the server, based on how they (the hosting company)
>>>> >>>>> set up the server and the times they place in the
>>>> >>>>> server, pushes the domain names out to some master
>>>> >>>>> servers.
>>>> >>>>>
>>>> >>>>> GoDaddy provides webpages describing how to set up
>>>> >>>>> their DNS (which basically configures a set of IP
>>>> >>>>> their IP addresses to point to your domain name(s)
>>>> >>>>> and vice versa).
>>>> >>>>>
>>>> >>>>> 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.
>>>> >>>>>
>>>> >>>>> Find the "hosts" file in:
>>>> >>>>>
>>>> >>>>> %SystemRoot%\system32\drivers\etc
>>>> >>>>>
>>>> >>>>> It might take a day or two to get to know how it
>>>> >>>>> all operates but the experience lasts forever.
>>>> >>>>>
>>>> >>>>
>>>> >>>> Which only works if he has a static IP. Almost all home IP's are
>>>> >>>> dynamic. As soon as his IP changes, he's out of luck
>>>> >>>>
>>>> >>>> That's why he needs to be in an appropriate newsgroup for these
>>>> >>>> questions - he'll get good answers.
>>>> >>>>
>>>> >>>
>>>> >>> Not entirely true. One can use a service like DynDNS with a
>>>> >>> dynamic IP
>>>> >>> to handle the DNS. There are many clients available (for all
>>>> >>> flavors of
>>>> >>> OS's) that will update the DNS if the IP changes. A lot of cheap
>>>> >>> soho
>>>> >>> routers now come with a dynamic dns client for various dyndns like
>>>> >>> services. I have done this at my house for over a decade without any
>>>> >>> trouble.
>>>> >>>
>>>> >>> All the OP needs to do is setup an account with anyone of the dyndns
>>>> >>> like services, point the godaddy domain name to the dyndns like dns
>>>> >>> servers. Easy.
>>>> >>
>>>> >> But GoDaddy isn't DynDNS, is it? Try reading the questions.
>>>> >
>>>> > No it's not. It's a domain register. As I said, point the godaddy
>>>> > dormain
>>>> > to DynDns.... Try reading the answer next time.
>>>> >
>>>>
>>>> Oh, I read your post. It's as full of crap as most of the rest of them
>>>> are. First of all, you assume he's using godaddy. There are much better
>>>> registrars out there.
>>>>
>>>> And you didn't even bother to respond to the rest of my points -
>>>> because
>>>> you know I'm right.
>>>>
>>>> But that's pretty normal for you.
>>>
>>> Yawn...
>>>
>>
>> Most intelligent thing you've said in this newsgroup yet.
>>
>
> Dance Jerry Dance...LOL

ROFLMAO! Look who's doing the dance! Not I, mister "I don't want
anyone to know who I am because I don't want them to know just how
stoopid I am" troll.

M

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173596 is a reply to message #173595] Wed, 20 April 2011 03:56 Go to previous messageGo to previous message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma: 0
Member
On 4/19/2011 9:58 PM, Jerry Stuckle wrote:
> On 4/19/2011 10:27 PM, Mr. B-o-B wrote:
>> On 4/19/2011 9:12 PM, Jerry Stuckle cried from the depths of the abyss:
>>> On 4/19/2011 10:00 PM, Mr. B-o-B wrote:
>>>> On 4/19/2011 6:52 PM, Jerry Stuckle cried from the depths of the abyss:
>>>> > On 4/19/2011 7:50 AM, Mr. B-o-B wrote:
>>>> >> On 4/19/2011 5:03 AM, Jerry Stuckle wrote:
>>>> >>> On 4/18/2011 11:05 PM, Mr. B-o-B wrote:
>>>> >>>> On 4/18/2011 7:14 PM, Jerry Stuckle wrote:
>>>> >>>>> On 4/18/2011 7:07 PM, James Carlock wrote:
>>>> >>>>>> "Peter Lauren"<peterdlauren at gmail.com> wrote...
>>>> >>>>>>> On Mon, 18 Apr 2011 09:44:31 -0700, Peter Lauren
>>>> >>>>>>> wrote:
>>>> >>>>>>>
>>>> >>>>>>> I've registered a domain name. Would I set up a
>>>> >>>>>>> DNS server though a web host like GoDaddy or would
>>>> >>>>>>> I be jsut as well using a free DNS server?
>>>> >>>>>>
>>>> >>>>>> GoDaddy provides the DNS servers when you buy hosting
>>>> >>>>>> through them. They provide a webpage to configure the
>>>> >>>>>> DNS servers. NOTE: Every change you make to the DNS
>>>> >>>>>> there may take up to 24 hours (or longer) to get
>>>> >>>>>> processed. Also, once you make a change to ANY DNS
>>>> >>>>>> the server, based on how they (the hosting company)
>>>> >>>>>> set up the server and the times they place in the
>>>> >>>>>> server, pushes the domain names out to some master
>>>> >>>>>> servers.
>>>> >>>>>>
>>>> >>>>>> GoDaddy provides webpages describing how to set up
>>>> >>>>>> their DNS (which basically configures a set of IP
>>>> >>>>>> their IP addresses to point to your domain name(s)
>>>> >>>>>> and vice versa).
>>>> >>>>>>
>>>> >>>>>> 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.
>>>> >>>>>>
>>>> >>>>>> Find the "hosts" file in:
>>>> >>>>>>
>>>> >>>>>> %SystemRoot%\system32\drivers\etc
>>>> >>>>>>
>>>> >>>>>> It might take a day or two to get to know how it
>>>> >>>>>> all operates but the experience lasts forever.
>>>> >>>>>>
>>>> >>>>>
>>>> >>>>> Which only works if he has a static IP. Almost all home IP's are
>>>> >>>>> dynamic. As soon as his IP changes, he's out of luck
>>>> >>>>>
>>>> >>>>> That's why he needs to be in an appropriate newsgroup for these
>>>> >>>>> questions - he'll get good answers.
>>>> >>>>>
>>>> >>>>
>>>> >>>> Not entirely true. One can use a service like DynDNS with a
>>>> >>>> dynamic IP
>>>> >>>> to handle the DNS. There are many clients available (for all
>>>> >>>> flavors of
>>>> >>>> OS's) that will update the DNS if the IP changes. A lot of cheap
>>>> >>>> soho
>>>> >>>> routers now come with a dynamic dns client for various dyndns like
>>>> >>>> services. I have done this at my house for over a decade without
>>>> >>>> any
>>>> >>>> trouble.
>>>> >>>>
>>>> >>>> All the OP needs to do is setup an account with anyone of the
>>>> >>>> dyndns
>>>> >>>> like services, point the godaddy domain name to the dyndns like dns
>>>> >>>> servers. Easy.
>>>> >>>
>>>> >>> But GoDaddy isn't DynDNS, is it? Try reading the questions.
>>>> >>
>>>> >> No it's not. It's a domain register. As I said, point the godaddy
>>>> >> dormain
>>>> >> to DynDns.... Try reading the answer next time.
>>>> >>
>>>> >
>>>> > Oh, I read your post. It's as full of crap as most of the rest of them
>>>> > are. First of all, you assume he's using godaddy. There are much
>>>> > better
>>>> > registrars out there.
>>>> >
>>>> > And you didn't even bother to respond to the rest of my points -
>>>> > because
>>>> > you know I'm right.
>>>> >
>>>> > But that's pretty normal for you.
>>>>
>>>> Yawn...
>>>>
>>>
>>> Most intelligent thing you've said in this newsgroup yet.
>>>
>>
>> Dance Jerry Dance...LOL
>
> ROFLMAO! Look who's doing the dance! Not I, mister "I don't want anyone
> to know who I am because I don't want them to know just how stoopid I
> am" troll.
>
> M
>
Boring...
Pages (4): [ «    1  2  3  4    »]  Switch to threaded view of this topic Create a new topic Submit Reply
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 11:37:44 GMT 2024

Total time taken to generate the page: 0.02890 seconds