localhost has nothing to do with php, it's just it always maps to the self-referencing ip address. host names are a separate issue. In apache (the standard php web server), this issue can be more complicated because of the heavy use of virtual hosts. For the majority of people, localhost is usually fine; anyone that wasn't using localhost is going to be knowledgeable enough to change it.
On Fri, Mar 7, 2008 at 4:49 AM, Cassie <[EMAIL PROTECTED]> wrote: > Just a quick question. - is the default php server just localhost? Because > I > can add a line in declaring the defaults for both server types. I feel > like > that should be good enough. > > - Cassie > > > On Thu, Mar 6, 2008 at 11:11 PM, Kevin Brown <[EMAIL PROTECTED]> wrote: > > > Fair enough. > > > > On Thu, Mar 6, 2008 at 2:07 PM, Chris Chabot <[EMAIL PROTECTED]> wrote: > > > > > hence the preference for http://<yourhost>:<yourport> :) > > > > > > On Mar 6, 2008, at 10:33 PM, Kevin Brown wrote: > > > > > > > That depends on apache configuration for the PHP version -- if you > > > > don't > > > > have root access to your machine it's not going to be able to run on > > > > port > > > > 80. > > > > > > > > On Thu, Mar 6, 2008 at 1:26 PM, Chris Chabot <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > >> See thats why i preferred the neutral host:port text instead, it > > > >> works > > > >> with the (default) java server but with the php version as well :) > > > >> > > > >> Once its in good enough shape, i'd even hope to get it included in > > > >> the > > > >> index.html etc, which all still assume the java server addr format > > > >> too > > > >> > > > >> -- Chris > > > >> > > > >> On Mar 6, 2008, at 9:03 PM, Kevin Brown wrote: > > > >> > > > >>> We should probably mention that if it's running on the same > machine > > > >>> as their > > > >>> browser it'll be localhost:8080 by default (also 127.0.0.1, which > is > > > >>> useful > > > >>> for verifying that rpc actually works across origins). > > > >>> > > > >> > > > >> > > > > > > > > > > > > -- > > > > ~Kevin > > > > > > > > > > > > -- > > ~Kevin > > > -- ~Kevin

