Memcache problem, anyone have a clue?

Discussion in 'Programming' started by iJames1, May 8, 2011.

  1. #1
    Hello guys,

    Bit of a weird one for me, I am a bit clueless on Memcache, cache. This is the error I am getting:
    Fatal error: Call to undefined function cache() in /home/site/public_html/file.php on line 37

    This is the code its refering too:
    
    Line 33: if ($cache > 0) {
    
    Line 35: $cache = time() + (int) $cache;
    
    Line 37: $memcache = cache();
    
    PHP:

    If anyone has an idea where this is coming from that would be great!

    Thank you:)
     
    iJames1, May 8, 2011 IP
  2. RainnusShin

    RainnusShin Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The error message says it all. Line 37, you are trying to use a function called cache() but it doesn't seem to be defined anywhere in the rest of your code.
     
    RainnusShin, May 8, 2011 IP
  3. bbqhotgamesb

    bbqhotgamesb Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe you're missing an include.
     
    bbqhotgamesb, May 13, 2011 IP