Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
February 26, 2019
no image

Check num day of month

11:21 AM

PHP function function getMonthDayNum($month, $year) { $month = (int)$month; $year = (int)$year; $days = 30; switch ($month) { case 1...

November 25, 2017
February 16, 2016
no image

JSON encode utf8 in PHP

9:18 AM

Using json_encode and JSON_UNESCAPED_UNICODE constants json_encode($response,JSON_UNESCAPED_UNICODE) Using json_encode, iconv and preg_mat...

November 5, 2015
October 16, 2015
July 10, 2015
July 7, 2015
March 17, 2015
September 28, 2014
September 27, 2014
September 19, 2014
no image

Curl upload file PHP

5:51 PM

There are "@" issue on multipart POST requests. Solution for PHP 5.5 or later: - Enable CURLOPT_SAFE_UPLOAD. - Use CURLFile instea...

September 11, 2014
August 27, 2014
 
Toggle Footer