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

Wow Easy For Beginner
PHP function function getMonthDayNum($month, $year) { $month = (int)$month; $year = (int)$year; $days = 30; switch ($month) { case 1...
Well, first of all, this is my folder structure: images/ image1.png image11.png image111.png image223.png generate_zip.php And this i...
Using json_encode and JSON_UNESCAPED_UNICODE constants json_encode($response,JSON_UNESCAPED_UNICODE) Using json_encode, iconv and preg_mat...
From time to time a user comes to me and says "I see some PHP notices and warnings on my page". Most of the time these are nothin...
So, you want to convert your long-standing WordPress to a plain, static HTML site? You no longer need your self-hosted setup that you have b...
Many Facebook application developers might have come across a situation where they need to post something to many pages, groups or friends. ...
The file_get_contents function is often used to quickly fetch a http url or resource. Usage is very simple and appears like this $content =...
This function converts strings into a format that can be used in URLs. For example, the string "Mike’s Karate School" would be ret...
I have a string that contains normal characters, white charsets and newline characters between and . This regular expression doesn't ...
The dream would be that it automatically checks if the alias already exists, and if necessary adds a prefix (or suffix) to ensure each alia...
<?php /** * Base64 encoding that doesn't need to be urlencode()ed. * Exactly the same as base64_encode except it uses * -...
There are "@" issue on multipart POST requests. Solution for PHP 5.5 or later: - Enable CURLOPT_SAFE_UPLOAD. - Use CURLFile instea...
<?php $path = 'zipfile.zip'; $zip = new ZipArchive ; if ( $zip -> open ( $path ) === true ) { for( $i = 0 ; $i < $zip -...
<?php /** * Send a POST requst using cURL * @param string $url to request * @param array $post values to send * @param array $options for...
Here is an interesting list of php tricks and tips, I found them here http://reinholdweber.com/?p=3 and you may take a looke here http://ww...