Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 02-27-2014, 06:26 AM   #15
ProgrammerGuy
Registered User
 
Join Date: Feb 2014
Posts: 12
You can use msqli_connect to a database - notice the 'i' after mysql. It stands for improved and is considered a more secure and stable way to connect to databases over the older mysql_connect.

Though I've found that I need to do some garbage collection after using it because it opens a thread which is left open for about 2 days to the database which quickly results in all my threads being used - that sucks!

Anyway although you can adjust this setting from within mysql itself I always prefer to code defensively so would recommend that you use the 'thread' services to get the thread id and then kill it when you're done.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ProgrammerGuy is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importance of Php Development for Web Development tech.biztech Programming General 35 11-22-2019 12:37 AM
PHP/ apache problem ncjbhd PHP / mySQL 0 10-17-2011 12:23 AM
is it possible to make an php file trough a php code ncjbhd PHP / mySQL 0 09-21-2011 11:49 PM
Question about using php with dhtml tables wryfhk22 PHP / mySQL 0 09-17-2011 01:59 AM
Integrating PHP question wryfhk22 PHP / mySQL 0 09-08-2011 02:52 AM


All times are GMT -7. The time now is 08:49 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.