How do i set a Connection Timeout for php mysql

Just need to increase the connection timeout for php / myssql

Code im using which is not working

ini_set('mysql.connect_timeout', 60);

Thanks

Dave
david_88Asked:
Who is Participating?
 
Dirtpatch-JenkinsConnect With a Mentor Commented:
You can set it globally in the php.ini file or do it manually for the script - heres how

http://www.php.net/manual/en/function.set-time-limit.php
0
 
agamalConnect With a Mentor Commented:
simply
ini_set('mysql.connect_timeout', ... );

Open in new window

0
 
david_88Author Commented:
lovely~! thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.