Tag Archives: PHP

Quick fix for the ‘Deprecated: Function eregi() is deprecated ‘ issue / error with phpThumb and PHP 5.3+

I recently upgraded a production server to PHP 5.3.6 from a much earlier 5.2.x build and noticed that the process had killed all instances of phpThumb on the server due to the deprecation of the functions ‘eregi’, ‘ereg’, ‘split’ & ‘eregi_replace’. See:- http://php.net/manual/en/migration53.deprecated.php for a full list of functions...

How to resolve Fatal error: Class ‘mysqli’ not found / Unable to load dynamic library ‘c:\PHP\ext\php_mysql.dll’ – Access is denied.

After much digging around on the net and of course Google I managed to cobble together a trouble shooting process to find out why I was getting the error message: Fatal error: Class ‘mysqli’ not found in E:\mysite\sql.php on line 17 PHP Warning: PHP Startup: Unable to load dynamic...

How to get a list of a tables field / column names from MySQL using PHP – getFieldNames() Function

A simple function to replicate the funcationality of the depreciated mysql_list_fields() function. It returns a simple array with a numeric index of the column / field names. $database – String – The database you want to use $connect_string – String – Your connection string $table – String – The...
Page 1 of 212