Mysql connection takes too long

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oriprice
Forum Newbie
Posts: 1
Joined: Wed Dec 09, 2009 12:51 pm

Mysql connection takes too long

Post by oriprice »

Hi.
I have a php file which makes a connection to mysql DB.
The connection somehow takes couple of seconds. which makes my bowser return an "500 HTTP Server Error".
The code works fine when i run it through an php editor/Debugger.

Is there any chance to improve my Mysql Connection? or on the other hand makes the browser to wait until the code finishes?

thanks,
Ori.
Post Reply