From: Alexander Schunk on 5 May 2010 02:30 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
From: Pierre Joye on 5 May 2010 03:41 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(a)gmail.com> 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
From: Venkat Raman Don on 5 May 2010 09:42 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(a)gmail.com] Sent: Wednesday, May 05, 2010 12:42 AM To: Alexander Schunk Cc: php-windows(a)lists.php.net Subject: Re: [PHP-WIN] 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(a)gmail.com> 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
From: Richard Quadling on 5 May 2010 09:48 On 5 May 2010 14:42, Venkat Raman Don <Don.Raman(a)microsoft.com> wrote: > 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(a)gmail.com] > Sent: Wednesday, May 05, 2010 12:42 AM > To: Alexander Schunk > Cc: php-windows(a)lists.php.net > Subject: Re: [PHP-WIN] 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(a)gmail.com> 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 > > I'd like to give a big endorsement to WinCache. I'm using it for IPC to communicate between a controller, its pools and its threads for a windows service (using a slightly modified PHP's Win32Service extension). Works incredibly well for me. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling
|
Pages: 1 Prev: how to access class members Next: Appending one MySQL file to another without duplicates. |