![]() |
#15 |
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. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |