Class 'Memcached' not found error on silex, Symfony PHP - php

I have a silex, Symfony PHP project, it uses Memcached. It runs fine on Linux. I am having trouble getting this working on my Win7 64 bit machine.
I get the following error
Class 'Memcached' not found
I have the memcached server up and running. If anybody could point out where I can download the memcached.dll, It will be great.
I can then load it as an extension in my php.ini file.
Thanks in advance.
PS: I already have the memcache.dll, I am looking for memcahced.sll

Have a look here: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
And here: https://stackoverflow.com/search?q=php_memcache.dll
And may the google be with you.

Related

Php 5.6 Memcached in XAMPP for Windows

I'm trying to find a solution for my problem. I downloaded a symfony2 project to localhost. I'm trying to run it, but it gives me an error:
Fatal error: Class 'Memcached' not found
I found solutions for Memcache errors, I have memcache installed and I'm running the memcached service too. It needs the memcached, not memcache extension, but I can't find it anywhere for windows. I really need to make this project run. Are there any alternatives? I didn't do anything to this project, I never worked on it, so I don't know the source code. Any help is appreciated. Thanks in advance!

Loading PHP MongoDB class with XAMPP on Windows 7

Okay.
I'm trying to use MongoDB with Node.js and PHP/XAMPP on Windows 7, but I can't seem to install the PHP MongoClient Class at all.
I am a complete beginner with MongoDB and I have to say that if I wasn't committed to solving this I'd have given up by now.
After lots of fiddling around trying to install the correct device driver version etc., I have come across yet another problem. But first, let me explain the steps I have taken so far.
Installed XAMPP v3.2.1, keeping all defaults.
Looked at phpinfo() on localhost:
PHP Version: 5.5.15. PHP Architecture: x86. Thread-Safe: Enabled.
Figured out where to download the software, as well as the correct version, etc.
Went to pecl.php.net/package/mongo/1.5.5/windows/.
At "DLL List" (PHP 5.5), I selected: `5.5 Thread Safe (TS) x86.
Went to PHP.ini (not the development or production version, but the actual one), and added 1 line: extension=php_mongo.dll. (line 887). No semicolon in front.
Started Apache.
Error: PHP Startup: C:\xampp\php\ext\php_mongo.dll could not be found on your computer.
I found out that when you manually type the file extension of a program that is already saved as a specific type, my computer simply prepends it to the existing one. The program was saved with the extension dll.dll. I got rid of that.
Restarted Apache.
Then I got this... Error: PHP Startup: Libsasl.dll is not found on your computer. Unable to load dynamic library C:\xampp\php\ext\php_mongo.dll. Try reinstalling the program.
I reinstalled the program. As I suspected, no missing file was magically created.
I then looked online to try to find this 'dll' file. After some searching, I was able to install Libsasl.dll via dll-files.com.
I restarted Apache.
Next problem:
Error: PHP Startup: Unable to load dynamic library C:\xampp\php\ext\php_mongo.dll - Access is denied.
I tried running XAMPP as an administrator. Same result.
The program is definitely there, but I can't seem to access it for whatever reason.
Why? I am getting quite frustrated with this and I would love everything to start working properly.
I have a hunch that it has something to do with read/write privileges but I don't know where to look.
Some help would be appreciated.
I was facing same issue, then after adding the path of the ".dll" file's folder to the environment variable as a system variable path, it worked. It is then able to find the file. At the end that was the only step which was stopping xampp to load the ".dll" file, although it was present in that folder. Often people miss this step as it is no where pointed out clearly.

“Fatal error class 'Thread' not found in…” when trying to use PHP pthreads

I’m working on a project for my graduation and I need to enable pthreads in PHP because I need multithreading. I used a tutorial, but I get this error: Fatal error class 'Thread' not found in….
I searched the web for help on how to enable pthreads, but nothing helped. I’m using PHP version 5.4.7.
A user suffering the same error has posted the solution on github: https://github.com/krakjoe/pthreads/issues/154
The short of it is you have to add pthreadVC2.dll to Apache configuration ... I wasn't aware of this, I don't use Windows ...
That should get you sorted ...
the dlls should be compatible with your php version
check this answer
pthread not working in php
There is no 'threading' in PHP. You can fork a new 'process' using pctnl_fork(), however there is no built in shared memory between the two processes (youll have to implement shmop() or a socket server setup to communicate between processes). Also, pcntl_* is only usable on linux setups, not windows.

unable to install joomla 3.1 with php 6

I tried everything but unable to solve this error and issue with joomla not sure why they have made things so complicated without explaining much. I am using Appserv with PHP 6.0.0 and joomla's new version 3.1. I have extracted the whole zip in my www root directory but every time when i check web url it takes me
http: // localhost/installation/index.php
and error shows as
Fatal error: Interface 'JsonSerializable' not found in
C:\AppServ\www\eshaheen\libraries\joomla\registry\registry.php on line 22
I searched on google but did not find any answer then i opened the registry.php file and added explicitely another import as
import('compat.JsonSerializable') doing that the above error is gone but everything is blank...
Kindly guide me how to install joomla...
regards
You are using outdated software. PHP6 development was closed and was never released. Actual version of PHP is 5.4.
Use other web server solution stack package of LAMP. For example: XAMPP

rabbitmq with wamp server

Ok so I have seen other questions regarding this but I still havent come right.
I need to connect to rabbitmq from php but I am using wamp on my windows machine.
I have seen that I need to download a pecl .dll. I have download a few but I still cant get it working.
Has anyone got this working if they have please tell me how.
Thanks
Have you look at AMQP PHP Extension?
http://www.php.net/manual/en/amqp.installation.php
This can be very easily achieved with php-amqplib .
This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.
Requirements: PHP 5.3 due to the use of namespaces.
And thus it works perfectly on windows too :)

Categories