php 调用未定义的函数 apc_fetch()

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23290230/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:37:52  来源:igfitidea点击:

Call to undefined function apc_fetch()

php

提问by Sujitha

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() .

我在我的项目中使用了下面的代码,它
在运行显示 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 .

我正在使用 xampp 3.2.1、php 5.4.20、windows 7 在 php.ini 中我使用了这一行 extension=php_apc.dll 但它仍然无法正常工作。

Can anybody please solve my Problem ,Thanks

谁能解决我的问题,谢谢

回答by varadha

you need APC extension to work with APC.

您需要 APC 扩展才能使用 APC。

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

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

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

下载适合您的 PHP 版本的 APC 扩展。并将其安装在您的 XAMPP 或 WAMP 上

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

在您的 Apache 服务器上使用 APC(替代 PHP 缓存)。

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

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