I am trying to add memcached.exe service to my php environment. The service is installed, the php_memcache.dll is in the "Php 5.2/ext" folder and I've added
extension=php_memcache.dll
to the "Php 5.2/php.ini" file. I tried adding it to a test project's php.ini file but the extension entry gets erased when I run it (seems you regenerate the file every startup). However I can't figure out the source of this because editing the 5.2 default php.ini seems to do nothing.
I also tried adding a reference to memcache in the "PHP Modules" section of the project, but still the class is unknown (php.ini loses the extension entry as it is regenerated)
Finally I created a copy of php.ini and added the extension entry, then set the project's php.ini location to this file. Seems to load ok but still no memcache in phpinfo().
Any ideas what I'm doing wrong?
juanc says:
Check this tutorial:
http://www.jcxsoftware.com/jcx/vsphp/tutorials/custom_phpini
Juan
noeldillabough says:
Great that worked, what was killing me was the file kept being regenerated, now I know.