Sussex based provider of affordable Business Internet & Ecommerce Solutions.

php

cPanel WooCommerce wp_remote_post() failed. PayPal IPN won’t work with your server. Error: Unsupported SSL protocol version

cPanel WooCommerce wp_remote_post() failed. PayPal IPN won’t work with your server. Error: Unsupported SSL protocol version

UPDATE: Note, Curl 7.49 causes problems with WooCommerce. Such as Updates not working and showing a 404 page. If you turn Debug on in wp-config.php the 404 doesn’t happen, but you get errors such as:- Notice: Undefined offset: 3 class-wc-session-handler.php on line Notice: Undefined index: wp_the_query Tried 7.36 and it seems to work as of […]

How to change php.ini Options on all PHP Versions of CloudLinux cPanel

How to change php.ini Options on all PHP Versions of CloudLinux cPanel

If you wish to apply a php.ini variable to all PHP versions running inside Cloudlinux CageFS (that’s just how php runs alongside your native version). You need to edit the following file:- # nano /etc/cl.selector/global_php.ini An example would be the Woocommerce/Wordpress “max_input_vars”, which recommends it to be above 1700, otherwise very large menus will get cut […]

Useful PHP Pecl Extentions

Useful PHP Pecl Extentions

  PHP’s MailParse Extension – Example https://code.google.com/p/php-mime-mail-parser/ PECL :: Package :: memcached – PHP – Examples here:- http://code.tutsplus.com/tutorials/turbocharge-your-website-with-memcached–net-23939 swoole – Asynchronous & concurrent & distributed networking framework for PHP. – Click Here for Swoole Example Code   Pear – Net_server – http://pear.php.net/package/Net_Server/docs – https://github.com/pear/Net_Server/blob/master/examples/talkback.php Pear – Services_JSON – http://pear.php.net/package/Services_JSON/docs Pear  – System_Daemon – Turn PHP […]

PHP 5.4 Event Driven vs Linear Video

For anyone coding PHP apps this might be an interesting video to watch. Event i/o driven programming seems to be doing the rounds, node.js is one of the more popular languages (using chrome js). Enjoy…,