Converting between PHP & MySql DateTime
I work most of the time in PHP and here are two functions I found to be helpful most of the time when dealing with DateTime value type between PHP & MySQL (It’s not written by me, but shared by a...
View ArticleGet the complete url of the current web page with PHP
Going to share with you a small snippet today, to determine and get the complete url of the current page in PHP 1. The Function function getPageUrl() { // First we see if the request was over SSL...
View ArticleHow to get AUTO_INCREMENT ID of the last MySQL Insert with PHP
Sometimes you may need to retrieve the ID of your latest record after inserting into MySQL. If you are using AUTO_INCREMENT columns for storing IDs then this is simple: Use mysql_insert_id() function...
View ArticleHow to get HTML source code with PHP
Sometimes you may want to get the source code of an external HTML webpage. Well, here is the solution that might work in almost every cases <?php $ch = curl_init(); // the external url $url =...
View ArticleWordPress Cheat Sheets collection
Working on WordPress? And you want a quick way for reference, then choose one of the following cheatsheets, they are great & helpful. 1. WordPress Cheat Sheet by Andy Wibbels Download:...
View ArticleHow to make Favicon for WordPress site
What is Favicon? Favicon is a small icon, with 16×16 px, appear on the url of the website when you visit To make a favicon for your WordPress, you can do as following: 1. Prepare an picture of...
View ArticleHow to have custom php.ini for each virtual host
Note: This is for Apache + mod_php 1. Assumptions I have a website that I don’t want to use global php.ini file, i want to use my own custom php.ini - Website: www.mysite.com - Document root:...
View ArticlePYROCMS Tag Reference Cheat Sheet
I started to work on PYROCMS for a few personal projects and found that it’s quite powerful & flexible with my favorite Code Igniter PHP framework. I looked for a cheat sheet of the PYROCMS tag...
View ArticleHow to calculate MD5 in Linux
Well, there are many ways to calculate MD5 hash of a string, in this post, I show you 3 command line that you can find them handy to get MD5 hash quickly and easily 1. Using PHP If you have PHP...
View ArticlePHP Manager for IIS on Windows 10
PROBLEM I recently try to install IIS (via features) and PHP 5.6 for IIS via WPI. Installing PHP along with other PHP extensions went smoothly, but installing PHP Manager for IIS failed immediately....
View Article