Read my articles below and learn new things on PHP, regular expression, image handling and a lot more cool stuffs. Need a custom script? Send your mail to me [at] nashruddin.com and I'll post the code here, for free!
Nov 10, 2008 | Tags:
Regex,
PHP | 10 comments
Getting file's extension is not as easy as it looks. This is because there is no strict format for file extensions. To obtain the extension from file names, you have to use regular expression. See the following example. Read more
Nov 9, 2008 | Tags:
PHP | 6 comments
At many times we need to a directory. Unfortunately we cannot simply use rmdir(), since it only removes empty directories. In this article, I will explain how to write recursive function to solve the task. Read more
Nov 7, 2008 | Tags:
PHP | 5 comments
It would be nice to have functions that convert associative arrays to SQL queries. Such a function will save our time from building queries. The functions take two main parameters, the name of the table and the data to be inserted in associative array. Read more
After building lots of projects, I realize that I spend a lot of time just to writing repeating (and boring) code; select, insert, delete, and update rows. I have to find a way to increase my coding speed, and I choose Zend Framework. Read more
Displaying random quotes is the easiest thing to do with PHP. But in case you don't know how, here it is. Read more
Nov 7, 2008 | Tags:
PHP | 1 comment
If you have recent news you want to display in your homepage, you might want to display only the summaries--a short paragraph with only 20-25 words. Read more
Writing scripts that run from command line is sometimes useful. It gives us more flexibility rather than scripts that called from web browsers. But passing parameters to these scripts is a little different. Learn how to read command line arguments from your script. Read more