What PHP scripts will cause localhost redirected to localhost.com?
Posted by: tenniselbow (---.dsl.pltn13.pacbell.net)
Date: August 28, 2010 12:49AM

I've recently upgraded to WAMP 2i from h , around 2 days ago

I found that some scripts once called, they will cause the localhost redirected to localhost.com
Sometimes it's a connection reset.

After that both localhost & 127.0.0.1 will no longer work.
I need to restart WAMP to access localhost again (restarting both services may not work)


My host file is cleaned leaving only
127.0.0.1 localhost

Tried flush dns

I've read : [forum.wampserver.com]
but I don't want to disable ipv6 for now , as I think I have a different problem

Not likely a browser problem, as its affected in both IE and firefox

My php scripts used to work in WAMP 2.0h
They are not made to hack or anything, just some file IO, renaming, mysql etc
But I'm not sure what could be the problem, as the PHP version is different between i and h

This is the first time I encounter such problems.



Edited 4 time(s). Last edit at 08/28/2010 12:58AM by tenniselbow.

Options: ReplyQuote
Re: What PHP scripts will cause localhost redirected to localhost.com?
Posted by: yfastud (Moderator)
Date: August 28, 2010 01:53AM

sounds like your firewall/antivirus more than php script and also try to clear browser cache too

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: What PHP scripts will cause localhost redirected to localhost.com?
Posted by: tenniselbow (---.dsl.pltn13.pacbell.net)
Date: August 29, 2010 09:07AM

hi,

Thanks for replying.

Your suggestions are tested & checked but negative.

I'm sure it's the script which cause apache to disconnect
The logs are not helpful. No related error logged in apache & PHP.

A common function like directoryToArray (which list directories names to array) can cause apache to disconnect. It's possibly related to non-alphanumeric characters in the paths. The same function has no problem when used in smaller directories which has pure alphanumeric characters.
It may be PHP 5.3.0 's bug or problem.



Edited 1 time(s). Last edit at 08/29/2010 09:08AM by tenniselbow.

Options: ReplyQuote


Sorry, only registered users may post in this forum.