Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我在公共托管服务器上设置 Zend 应用程序时遇到上述错误。我在同一台服务器上有另一个应用程序运行正常,所以我假设 APC 显然已加载。我该如何诊断?谢谢
我假设您正在使用 APC Zend_Cache 后端。要使用它,您需要安装 APC 扩展。
要检查它是否已加载,只需将以下内容粘贴到 php 文件中,然后在浏览器中查看:
<?php phpinfo();
搜索类似“此程序使用 Zend 脚本语言引擎:Zend Engine v2.3.0,版权所有 (c) 1998-2010 Zend Technologies”的块
如果您在那里看到 APC,则说明它已加载。
http://php.net/manual/en/function.extension-loaded.php
检查“apc”扩展名。