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...
[Tutorial] Groovy and Grails Part 2 – Installing Grails
This is the next article from Grovvy and Grails Part 1 - Introduction that you can read it here. Now we continue to install grails in your machine. Before you continue, there are some requirements to run Grails in your machine, so please read it carefully :)Requirements to install Grails: Java SDK 1.4 or higher and have set your JAVA_HOME variable to the SDK install location. note here, Java OpenSDK and JRE is not working with Grails. Apache Ant 1.6.5 or higher * JUnit (to run the … Read more...
[Tutorial] Groovy and Grails Part 1 – Introduction
What is Groovy? What is Grails? For those who don't know about Groovy and Grails, you are lucky because i'm about to explain Groovy and Grails and how powerful they are in Web Application Technology. Also i will give you some example to help you to understand and start using it!"Groovy is a relatively new dynamic language that can either be interpreted or compiled and is designed specifically for the Java platform." (Beginning Groovy and Grails From Novice To Professional Apress). Groovy … 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...
Simple Create Order module – Zen cart
I have created a simple module in zen-cart. This module called Simple Create Order v1.0. I created this module because i can't find any module for create order from the admin back end.After did some search on google and looking in Zen-Cart forum. I found that there are 2 modules related to mine: those are super order 2.0 and edit order v1.5.3.I thought i can use super order 2.0, but i did found that the developer of this module discontinued the project and there are many bugs and many … Read more...