Sarajevo, Bosnia and Herzegovina

Category Archives: PHP

Fatal error: Class ‘Mongo’ not found – WAMP

If you have a problem to install Mongo on Wamp you might be interested in the following trick. Platform:Windows 7 64bit PHP 5.5.12 Apache2.4.9 Download your php_mongo.dll driver from https://s3.amazonaws.com/drivers.mongodb.org/php/index.html and extract it into C:\wamp\bin\php\php5.5.12\ext Then simply copy “libsasl.dll” from C:\wamp\bin\php\php5.5.12 to C:\wamp\bin\apache\apache2.4.9\bin. Refresh your wamp (right click->refresh) and restart all your services. If you have the […]

Read more

Getting into multiprocessing with PHP

int pcntl_fork ( void ) int pcntl_waitpid ( int pid, int &status, int options) int pcntl_wexitstatus ( int status) We already discussed the problems inherent to using a singe process for a PHP script – multi-processor boxes are under-utilised, and single-processor boxes are often left waiting for slow operations to complete before they can continue […]

Read more