[TIPS] Get File Extension Easily in PHP

I want to share a tips for you to get file extension in PHP easily. Before i always use the old way to get the file extension, that is using substring and find the last "." (dot), and get the extension. For those who still doing this, i have a tips for you to get the extension easier.You can use pathinfo, with pathinfo you can get information about a file path, here is the example how to use it:That's it! Thank you for visiting my blog and have a nice day... … Read more...

Solve WordPress Blank Page

Today my blog was down for couple hours. My front page was blank. No errors, no response, no logs and it was really make me frustrated. After digging a while i found that my admin backend was working and no errors. And i tried to type any link so it will produce 404 response, and yippiee... my blog show up. But the front page still blank!Then i remember last night i edited some configuration in .htaccess file.  I tried to restore it and the front page still blank. Argghhh..... Then i tried … Read more...

[TIPS] Solving Ubuntu Sound Problem Without Restart

Have you ever had the sound problem in Ubuntu, especially in Ubuntu 8.10 Interpid Ibex? And to fix it you need to restart your computer, and if the sound stop working again then restart again... it's so frustrating, isn't it?Now i would like to share with about how to fix it, but not really fix it, at least you don't need to restart your computer if the sound stop working. This is based on my experience using Ubuntu 8.10 Interpid Ibex with Intel x86 processor, the sound occasionally stop … Read more...

[TIPS] ALT-TAB Make Ubuntu Freezes

If you found your Ubuntu frozen after press ALT-TAB for Application Switcher from Compiz feature, you can follow this steps to fix it:Open Compiz Configuration Uncheck the Reflection checkbox And you don't have problem with Application Switcher anymoreI thinks this is consider as a bug in Compiz. Let's hope that they can fix it in later release. Thanks for reading and don't forget to leave any comments … Read more...

[HowTo]Turn Off Directory Listing in Apache Web Server

Today i found that my web server doesn't make Directory Listing by default. And this can be a vulnerable for WordPress since wp-content directory can be exploit. So test your blog, if your web server doesn't turn off the directory listing by default please follow this steps (only works for Apache web server):Create or Edit existing .htaccess Add this code there: Options -Indexes Save and close .htaccess file Test It!That step will turn off the Directory Listing. Thank you for … Read more...