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.
是否可以使用 PHP-CGI 运行 APC?我无法获取上传文件的 apc 上传值,我使用的配置是:
apc.rfc1867 On apc.rfc1867_freq 0 apc.rfc1867_name APC_UPLOAD_PROGRESS apc.rfc1867_prefix upload_ apc.rfc1867_ttl 3600
php代码:
$status = apc_fetch('upload_'.$uid); // $uid = id for the file
不,APC 在作为 CGI 运行时不起作用——它依赖于与其他进程共享数据,这仅在所有 PHP 进程一起启动时才起作用。(仅当 PHP 作为 Apache 模块或在 FastCGI / FPM 下运行时才适用。)