Re: Problems with apc extension on wamp server.
| From: | Valentinas Bakaitis | Date: | Wed, 17 Jun 2009 11:46:43 +0000 |
| Subject: | Re: Problems with apc extension on wamp server. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294151@lists.php.net to get a copy of this message | ||
Found the problem:
<input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key"
value="1" />
must always be before file input in the form.
2009/6/17 Valentinas Bakaitis <v.bakaitis@gmail.com>:
> Hi.
>
> Yes, as it turned out, the extension was not loaded. While following
> some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out
> that this particular line turns on one of apc functions (file
> tracking), but not the apc itself.
>
> However, now when i have apc turned on i still have a problem with
> file upload tracking:
> the apc_fetch(upload_xxx) returns information only when the file
> download is finished. while it is in progress, the result is false(0).
>
> Any ideas?
>
>
>
> 2009/6/17 Jonathan Tapicer <tapicer@gmail.com>:
>> Hi,
>>
>> Does the extension appear on a phpinfo()?
>>
>> Seems like the extension isn't loaded.
>>
>> Jonathan
>>
>>
>> On Tue, Jun 16, 2009 at 5:20 PM, Valentinas
>> Bakaitis<v.bakaitis@gmail.com> wrote:
>>> Hello!
>>>
>>> I am trying to track file upload progress using APC extension.
>>> However, when trying to use, it gives
>>>
>>> Fatal error: Call to undefined function apc_fetch() in
>>> C:\wamp\www\old\getprogress.php on line 3
>>>
>>> I am using WAMP 2.0, with php 5.2.8
>>> APC extension appear on extensions list and is enabled.
>>>
>>> Any ideas what i am doing wrong?
>>>
>>> here is the code of getprogress.php:
>>>
>>> *
>>> *
>>> $upload = apc_fetch('upload_1');
>>> if ($upload) {
>>> if ($upload['done'])
>>> $percent = 100;
>>> else if ($upload['total'] == 0)
>>> $percent = 0;
>>> else
>>> $percent = $upload['current'] / $upload['total'] *
>>> 100;
>>>
>>
>