Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $outList.= outData($getList);
- <?php
- @$memcache = new Memcache;
- @$memcache->connect("localhost",11211);
- function outData($getList)
- {
- $memVal = @$memcache->get(MD5($getList));
- if($memVal=='')
- {
- $results=mysql_query($getList)or die(mysql_error());
- // then I do a bunch of stuff with the data
- @$memcache->set(MD5($getList), $memVal, false, 60000);
- }
- return $memVal;
- }
- $memVal = @$memcache->get(MD5($getList));
- #Notice: Undefined variable: memcache in /home/topbit/736160.php on line 9
- function outData($memcache, $getList)
Add Comment
Please, Sign In to add comment