Simple way to display current folder physical path in PHP. echo dirname(__FILE__);
Read More »A simple code to schedule cron job to call or execute an external URL without creating the log. wget -q -O –
Read More »Adding this code above all other code in .htaccess file will force visitor to https instead of http. RewriteEngine On RewriteCond %{HTTP_HOST}
Read More »Sometime we just want to find any duplicate data in the table, this simple statement will help to get the list of
Read More »A simple statement to update one table field with another table field value. UPDATE theUpdateTable INNER JOIN theValueTable ON (theUpdateTable.matchValueField =theValueTable.matchValueField) SETtheUpdateTable.valueToUpdate
Read More »Sometime we just need to compare left and right table to ensure the data are tally. There’s 2 SQL statement we can
Read More »Working on an oversea project lately which required to host the web application on different time zone server. It’s too troublesome to
Read More »Sometime we need to flush the computer DNS record due to some changes of domain pointing. Instead of going to every computer
Read More »Receive my VCR Reward kit from UltraVRider after my completion of VR 160KM Century Ride. The medal and jersey design was great.
Read More »Most of the Linux hosting have directory browsing enabled, this allow people to view the content of individual folder (Directory) in your
Read More »
