9
votes

Im using the below code to my project ,It is not working on locally
while running the code it was showing Call to undefined function apc_fetch() .

 $apc_key = "abc_list";
    $info = apc_fetch($apc_key);

I am using xampp 3.2.1 ,php 5.4.20 , windows 7 In php.ini i used this line extension=php_apc.dll but still it is not working .

Can anybody please solve my Problem ,Thanks

1
I hope you saved and restarted your webserver after doing that. - Shankar Damodaran
yes shankar but still it is not working , any other option - Sujitha
php_apc-3.1.10-5.3-vc9-x86 - Sujitha
What you downloaded is for PHP 5.3 version , but you are using PHP 5.4 right ? Here's the dll for 5.4. Try this. downloads.php.net/pierre/php_apc-3.1.10-5.4-vc9-x86.zip - Shankar Damodaran
You added it under ext folder right ? - Shankar Damodaran

1 Answers

5
votes

you need APC extension to work with APC.

https://pecl.php.net/package/apc

download your APC extension which suites your PHPversion. and install it on your XAMPP, or WAMP

on your Apache server to work with APC(Alternative PHP Cache).

http://kvcodes.com/2014/06/solution-call-undefined-function-apc_fetch/