July 29, 2013

Keep Backup Daily – How to restore your backup files?

phpMyAdmin Database Import

Keep Backup Daily – How to restore your backup files? Question: If I run backups daily and I get hacked etc. how / where do I upload the backup to? Answer: You can restore your backup from WordPress admin too. But this is a reality that if you are hacked then how will you have […]

July 25, 2013

How to update set of secrete keys in WordPress?

Question: Hi, I am new to wordpress blog management. One of my friend told me that once development phase will be over so must update set of wordpress secrete keys. Can you please help me out that how can i do it? Answer: Thank you that you installed and start using WP Mechanic. Please open […]

July 19, 2013

How to use https for every content on your site?

If you are unable to have few contents with https then do a simple trick. Use file_get_contents() and store http content in a variable.

WordPress HTTPS

WordPress HTTPS

WordPress HTTPS WordPress HTTP, WordPress HTTPS, .htaccess HTTP, .htaccess HTTPS

July 8, 2013

PHP Function – Time Difference or Time Ago

PHP Function – Time Difference or Time Ago function _ago($time_to, $time_from = 0) { if($time_from==0) time(); $rtc = 60*60*24; //ROUND THE CLOCK $total_weeks = 52.177457; //ESTIMATE NO. OF WEEKS $years = (int)((($time_from – $time_to)/(7*$rtc))/$total_weeks); $rem = (int)(($time_from-$time_to)-($years * $total_weeks * 7 * $rtc)); $weeks = (int)(($rem)/(7*$rtc)); $days = (int)(($rem)/$rtc) – $weeks*7; $hours = (int)(($rem)/3600) – […]