Re: [PHP] Problems with apc extension on wamp server.

[email protected] (Jonathan Tapicer)
Newsgroups php.general
Message-ID <[email protected]>
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<[email protected]> 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;
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.