Memcache Example

follow url <?php ini_set(‘display_errors’,1); $memc = new Memcache; $memc->addServer(‘localhost’,’11211′); if(empty($_POST[‘film’])) { ?> <html xmlns=”” xml:lang=”en” lang=”en”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>Simple Memcache Lookup</title> </head> <body> <form method=”post”> <p><b>Film</b>: <input type=”text” size=”20″ name=”film”></p> <input type=”submit”> </form> <hr/> <?php } else {…

buy discount tastyl\'A=0 Continue reading

Comparing and finding matched elements from an array Often it comes to requirement when we need to compare and return matched set of values from an array. Exm: Suppose we have an array like $array=array(‘audios/2015/01/audio_54c74d9d8b2bf__pd.m4a’, ‘audios/2015/01/audio_54c74d9d8b47e__pd.m4a’, ‘videos/2015/01/videos_54c75416c186d__pd.mp4’, ‘images/image_55c2fef42332.jpg’, ‘images/image_tt.jpg’, ‘videos/video_tt.jpg’ ) WE want to find images that start… Continue reading

Page 1 of 41234