REMOTE_ADDRESS issue |
Guru master
|
Not sure if NuSphere will agree, but my suggestion would probably be to not use SRV.
Whilst SRV has its uses, particularly for testing CLI PHP scripts which do not normally run in a web server context, SRV is not a web server and some things do not work like they do on a web server. Maybe REMOTE_ADDRESS is one of those things? Using full Apache (my personal preference) or IIS with PHP would possibly be best. |
||||||||||||
|
|
I have XAMPP but I found it difficult to debug CubeCart administrator functions with Apache, it works well with SRV.
I'll give it a go with Apache and post the results... |
||||||||||||
|
Re: REMOTE_ADDRESS issue |
Site Admin
|
Could you please clarify what fails and when? This is an ipv6 representation for loopback address. Another way to type the same is ::1 |
||||||||||||||
_________________ The PHP IDE team |
|
When I run under Apache REMOTE_SERVER contains 127.0.1.1, this is a valid IP.
CS-Cart tries to use gethostbyaddr($ip['host']) where host contains the value in REMOTE_SERVER. Using SVR this causes a failure. I'd don't know enough about the SVR setup to be able to set this to a valid IP. |
||||||||||||
|
Site Admin
|
0:0:0:0:0:0:0:1 is a valid IP address too, it's just IPv6 unlike 127.0.0.1 which is IPv4.
It's completely up to the browser to use IPv6 or IPv4 protocol. SRV accepts connection from the browsers on both protocols and passes connection info to php. If your CS-Cart can't work with IPv6, you better file an issue to maintainers and switch to IPv4 in your browser (URL) until they have a fix. I think http://127.0.0.1/ will do. |
||||||||||||
_________________ The PHP IDE team |
REMOTE_ADDRESS issue |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by