Note that there are some explanatory texts on larger screens.

plurals
  1. POAPC script locks ups
    text
    copied!<p><em><strong>UPDATE - This is not a problem with APC but actually my server when I edit a script, save, and re-run it. The page loads continuously and the file locks due to my httpd.exe process whether APC is involved or not. I suggest a moderator close this question.</em></strong></p> <p><strike>So I just installed PHP's APC and verified that it's installed and working with phpinfo() but I'm running into a few problems actually using it. I'm using the below code on a page to experiment with APC, and when I load the page it comes up as expected with It Worked on it.</p> <p>However, when I refresh the page <em>after changing the script</em> it just tries to load the page continuously. Not only that, but the code (apc/index.php) becomes locked off from any kind of editing due to it being used by another program. Even when shutting down my entire server and closing the page it's still in use by another program. The only way to unlock it is to actually restart the whole computer. This happens everytime I try to run this script, so can anyone tell me what's going on?</p> <pre><code>&lt;?php $testvar = "It worked"; apc_add("test",$testvar); print_r(apc_fetch("test")); ?&gt; </code></pre> <p><strong>UPDATE</strong> - My phpinfo on APC is shown <a href="http://puu.sh/33TN6/b6fa1bbda8.png" rel="nofollow">here</a>, I'm running PHP 5.4.3 and Apache 2.2.22 on WAMP server 2.2, and the APC section in my php.ini is shown below.</p> <pre><code>[APC] apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 64M apc.max_file_size = 10M apc.stat = 1 </code></pre> <p></strike></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload