PHP: how to save a remote file using CURL phptuts January 12, 2018 How to save a remote file using CURL? You can read more about CURLOPT_WRITEFUNCTION in this article: PHP: Example of usage CURLOPT_WRITEFUNCTION Continue Reading
PHP: upload file to FTP server phptuts January 12, 2018 How to upload file to FTP server using PHP? Continue Reading
PHP: How to check if a remote file exists phptuts January 11, 2018 Main method is read header file, so, you can read 2 article first: PHP: How to get size of a remote file PHP: How to… Continue Reading
Linux: Cron job to monitor for php-fpm service problem phptuts September 17, 2017 Sometimes, php-fpm service is error, how to monitor for php-fpm service ? Step 1: create a file like check.php with a simple content like and… Continue Reading
PHP array_shift equivalent in golang phptuts August 16, 2017 We use reflect as the example: Result: Continue Reading
PHP parse_str equivalent in golang phptuts August 16, 2017 PHP parse_str equivalent in golang is url.ParseQuery Example: Result: Continue Reading
How to prevent ERR_BLOCKED_BY_XSS_AUDITOR on chrome phptuts August 11, 2017 Sometime, you can see this error: A case i can show: when you post a HTML code from a textarea form. Ex: POST /url in… Continue Reading
Install PHP 7 on CentOS 7 phptuts July 24, 2017 After I showed last week what problems you can deal with when switching from PHP 5.6 to PHP 7, I would like to show you… Continue Reading
Function apache_request_headers on Nginx phptuts July 17, 2017 Function apache_request_headers supports only on Apache, how to use it on Nginx. Here is the solution: Continue Reading
PHP CURL: How to limit read size phptuts May 11, 2017 In some case, we need to read a first part of a website page or a file (eg a big file). How to limit read… Continue Reading