Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Baris Yuksel  >  mysqli.so.php  >  usage.txt  >  Download  
File: usage.txt
Role: Documentation
Content type: text/plain
Description: Usage
Class: mysqli.so.php
Access MySQl databases with MySQLi compatible API
Author: By
Last change:
Date: 6 years ago
Size: 453 bytes
 

Contents

Class file image Download
add this code before using mysqli extension :


/*########################################################*/

	if(!extension_loaded('mysqli')){
		$prefix = (PHP_SHLIB_SUFFIX == 'so') ? '' : 'php_';
		if(!@dl($prefix . 'mysqli' . PHP_SHLIB_SUFFIX)){
			require_once 'mysqli.so.php';		
		}
	}
	
/*########################################################*/

if mysqli extension not loaded, it'll include mysqli.so.php file.
Good coding! ;)