Moving from a procedural system to object-oriented can be a daunting task. One feature to assist you is the MySQLi class, which allows for an object-oriented approach to database manipulation. This tutorial gives insight into the structure and basic usage of the MySQLi class. If PDO isn’t an option for you, then try MySQLi!
Category Archives: Programming
Grab website thumbnail images from other sites
Some websites, like http://www.digg.com, http://www.stumbleupon.com, etc. provide us with website snapshots. Special utility can be written in scripting language (like PHP, Perl, etc.) to grab website image from their search results. Website Thumb Generator can be used to create website thumbnails for your needs, or start your own website thumbnail generation service. Requirements: Windows hosting …
Continue reading “Grab website thumbnail images from other sites”
domdocument::domdocument() expects parameter 2 to be long
Not to worry, This s because of domxml library. If your are using PHP4 the in php.ini uncomment extension=php_domxml.dll. and If your using PHP 5 then comment extension=php_domxml.dll. Have Fun… Harshad Pandit, PHP-Pandit
11 Ways to Backup your del.icio.us bookmarks
11 Ways to Backup your del.icio.us bookmarks Del.icio.us remains the grand-daddy of all the Social Bookmarking Services. It was bought out by Yahoo but, it remains slow and has many outages. Here are ways to backup your bookmarks for this 24×7 world.
PHP Change encoding from “file_get_contents”
$requestAddress = “your XML url”; $xml_str = file_get_contents($requestAddress,0); $xml_str = mb_convert_encoding($xml_str, ‘UTF-8’, “iso-8859-7”); //mb_convert_encoding(‘The URL’, ‘The URL Encoding’, ‘Your encoding’)
disable tinyMCE only on a textarea
tinyMCE.init({ mode : “exact”, elements : “elementID1,elementID2…” });