GuitarGod Posted November 12, 2012 Share Posted November 12, 2012 Hi all, I'm not to clued up on Apache/servers, so if this is a basic problem I do apologise. I've been working on a script for a while using a local development server (WAMP) and have recently switched to another local server, my script however has started to run very slow - sometimes it times out, and all images don't load (not a problem with my old server). phpMyAdmin (also hosted on my server) runs fine, but if my program is open in another tab at the same time, it slows phpMyAdmin right down. Any ideas what it could be, and how to fix it? Or even check for errors? My script is too large to post here, but it never gave me a problem on my old server. Any light you could shed is appreciated Thanks Quote Link to comment https://forums.phpfreaks.com/topic/270605-script-suddenly-running-very-slow/ Share on other sites More sharing options...
GuitarGod Posted November 12, 2012 Author Share Posted November 12, 2012 Upon more research I've found that changing "localhost" to "127.0.0.1" in the MySQL connection string solves the problem entirely. I'm not sure why this is, but it's good enough for me. Quote Link to comment https://forums.phpfreaks.com/topic/270605-script-suddenly-running-very-slow/#findComment-1391884 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.