Filed in: PHP/MySQL
Home » Archive for January, 2010
Convert XML to Array in PHP using SimpleXML
Though I would suggest using DomDocument for parsing XML strings and files in PHP, here is an example of converting XML to an Array in PHP using SimpleXML method. The SimpleXML extension in PHP provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal...
A small article for those who want to experience with Regular Expressions in PHP. Regular expressions, also referred to as regex or regexp, provide a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters. Regular expressions are used by many text editors, utilities, and programming languages...
This article covers two things.
1) Error handling in Perl using EVAL Block
2) Using the EVAL Block feature to check whether a directory exists on a remote FTP location.
The first time ever I had to work in Perl was last month when I was asked to look in to an issue with sending a file to a remote FTP from the server. Basically, the perl script fetches...
Filed in: Perl Programming, Programming Techniques
I have no reasons for posting this article here. But I’m sure someone can get some insight from this. This is a good example of making use of recursive function calls also known as recursion. It takes the form of a function that calls itself. Recursive functions or recursion are something that needs a little more attention as you have to be sure that...
Filed in: PHP/MySQL, Programming Techniques


