Skip to content

Closing a Ratchet IOServer

Is there a method of terminating IOServer’s loop? I’m using WebSockets as a hacky inter-app communication system (believe me, if I could use anything else, I would), but I can’t break out of the loop and continue my application after calling run() on IOServer. Do I need to subclass IOServer …

Permission denied with bash.sh to run cron

How to run a cron with bash script here.What i did as follows and here with errors.I want to know how to do that in ubuntu.I was struck with it now bash.sh file #!/bin/bash cd /var/www/Controller …

PHP APC installation failed on Ubuntu

I have done this sudo apt-get install php-pear php5-dev make libpcre3-dev and then sudo pecl install apc But I’m getting this error: ^ make: *** [apc_compile.lo] Error 1 …

Use Heroku config vars with PHP?

I’ve been able to find information on how to use config vars in Heroku for Python, node.js, and some other languages, but not for PHP. Can you use them with PHP, or is it not supported? This article shows how to do it for Python, Java, and Ruby, but not PHP. Answer Config vars on heroku manifest themsel…

jQuery UI sortable images

Hi I ‘d like some help please, as my skills in jQuery are not so good. What I want to achieve is to change the order of the images like this example. My database looks like this: I have also created these 2 views: index.php order_ajax.php I have also created and the order_ajax controller So what I basically w…