RE: using php apc functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexander,

Apart from what Pierre mentioned, I also doubt if APC works smoothly on Windows. The major problem is difference between shared memory implementation on windows and unix. I would suggest use Windows Cache Extension for PHP a.k.a. WINCACHE. It has got all the functionality that APC has and more too like file cache, file change notification etc and is meant to work on Windows and is well tested on Windows. And if you are using FastCGI to host PHP, it should work on Apache too.

Details at http://pecl.php.net/package/WinCache and http://www.iis.net/download/WinCacheForPhp.

Thanks,
Don.

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@xxxxxxxxx] 
Sent: Wednesday, May 05, 2010 12:42 AM
To: Alexander Schunk
Cc: php-windows@xxxxxxxxxxxxx
Subject: Re:  using php apc functions

hi,

Did you restart apache? Are you sure you edited the correct php.ini?
You can verify it using a simple phpinfo(); page.

Cheers,
--
Pierre

On Wed, May 5, 2010 at 8:30 AM, Alexander Schunk <aschunk@xxxxxxxxx> wrote:
> Hello,
>
> i want to use the php APC Functions.
>
> I am using xampp server and latest php.
>
> The Windows dll for APC is in the extensions directory and the
> extension is configured in the php.ini.
>
> However, i still get an error that php does not find the fuction apc_add:
>
> $myvar =  'hell world';
>     $stored = apc_add('myvar',$myvar);
>
>     if($stored){
>       echo 'Variable wurde gecached';
>
>     }
>     else{
>       echo 'Variable wurde nicht gecached';
>     }
>
> Thank you
> Alexander
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux