douci1918 2014-05-23 04:36
浏览 20

apc_store()只适用于某些目录?

I am using PHP's apc_store() and apc_fetch() to store variables.

For PHP files in Apache's document root (including subdirectories), the APC functions work fine.

However, when I use APC functions in other directories (anything but the document root), apc_store() doesn't work. I can't store any variables.

How can I make APC work in other directories?

EDIT: I realized that whether or not APC worked wasn't dependent on the directory. Rather, I had to use the terminal to run anything that wasn't in the document root. If I used a terminal to run the file in the document root, APC doesn't work either. So the question becomes: how do I use APC with a terminal?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法