using php apc functions

using php apc functions

am 05.05.2010 08:30:06 von Alexander Schunk

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

Re: using php apc functions

am 05.05.2010 09:41:42 von Pierre Joye

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 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 =3D =A0'hell world';
> =A0 =A0 $stored =3D apc_add('myvar',$myvar);
>
> =A0 =A0 if($stored){
> =A0 =A0 =A0 echo 'Variable wurde gecached';
>
> =A0 =A0 }
> =A0 =A0 else{
> =A0 =A0 =A0 echo 'Variable wurde nicht gecached';
> =A0 =A0 }
>
> Thank you
> Alexander
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--=20
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

RE: using php apc functions

am 05.05.2010 15:42:37 von Venkat Raman Don

Hi Alexander,

Apart from what Pierre mentioned, I also doubt if APC works smoothly on Win=
dows. 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 l=
ike file cache, file change notification etc and is meant to work on Window=
s 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/down=
load/WinCacheForPhp.

Thanks,
Don.

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Wednesday, May 05, 2010 12:42 AM
To: Alexander Schunk
Cc: php-windows@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 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 =3D =A0'hell world';
> =A0 =A0 $stored =3D apc_add('myvar',$myvar);
>
> =A0 =A0 if($stored){
> =A0 =A0 =A0 echo 'Variable wurde gecached';
>
> =A0 =A0 }
> =A0 =A0 else{
> =A0 =A0 =A0 echo 'Variable wurde nicht gecached';
> =A0 =A0 }
>
> Thank you
> Alexander
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--=20
Pierre

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

--=20
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

Re: using php apc functions

am 05.05.2010 15:48:21 von Richard Quadling

On 5 May 2010 14:42, Venkat Raman Don wrote:
> Hi Alexander,
>
> Apart from what Pierre mentioned, I also doubt if APC works smoothly on W=
indows. The major problem is difference between shared memory implementatio=
n 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 Wind=
ows 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/do=
wnload/WinCacheForPhp.
>
> Thanks,
> Don.
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Wednesday, May 05, 2010 12:42 AM
> To: Alexander Schunk
> Cc: php-windows@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 wrot=
e:
>> 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 =3D  'hell world';
>>     $stored =3D 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=3DZEND002498&r=3D213474=
731
ZOPA : http://uk.zopa.com/member/RQuadling

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