How to cache images in memcached in php? -


im trying cache images in memcached. tested code:

ob_start();  $image = imagecreatefrompng(root_dir."/img/welcome.png"); imagepng($image);  $memcache->set("my_image", ob_get_contents(), false, 3600);  ob_end_clean(); 

but not works. suggestions?


Comments

Popular posts from this blog

php - Cakephp Not validating data in Form -

html5 - How to use WYSIWYG editor in Phpfox? -

php - get the current k2 item ID -