Category: Programming

How to upload a file to remote FTPS with cURL and PHP

You may need to upload a file to remote FTP or FTPS in a number of cases. In this article I’m going to show you how to upload file with cURL from Linux shell and using cURL in PHP.

Continue reading

Asterisk Phone Inventory / Useragent List

I need to find out whether all Cisco phones in organization use the latest firmware. As SPA series phones show firmware version in “Useragent” string it would be great to display all useragents in Asterisk. In order to get this string from all Asterisk peers we need to go through each peer and display the …

Continue reading

Unable to set php_value soap.wsdl_cache_dir

I php-fpm access.log we can see the following: [18-Jan-2018 15:03:38] WARNING: [pool www] child 2148 said into stderr: “ERROR: Unable to set php_value ‘soap.wsdl_cache_dir’” By default this parameter looks like the following: php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache

Continue reading