Category
Tips : Find a file in subdirectory with FilterIterator in php - Antoine Ughetto
In my previous post Johannes Schlte leave a comment which recommand me to use a filterIterator. I’m not really familiar with all the SPL capabilities but the best way to improve my knoweldge in SPL is to make test.
So, we have the same subdirectory than is the previus test. Here is the code :
include(dirname(__FILE__).”/class.directorysearch.php”);
$directory = […]
Popularity: unranked [?]
Tips : RecursiveArrayIterator on mulitdimensional Array - Antoine Ughetto
When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the SPL library of PHP.
To do this we will use a RecursiveArrayIterator and a RecursiveIteratorIterator
(more…)
Popularity: unranked [?]
Popularity: unranked [?]
Antoine Ughetto’s Blog: Easy way to find a file in subdirectory with php
Antoine Ughetto has posted an easy way to find a file inside any series of subdirectories with PHP:
I’ve made a previus post on SPL using RecursiveIterator to parse Array. Today we will use this same RecursiveIterator with a DirectoryRecursiveIterator.
The code is pretty simple and straight forward - a DirectorySearch class that takes in the directory […]
Popularity: unranked [?]
Yui Treeview with Php tidy - Antoine Ughetto
A rapid experimentation with php tidy and Yui treeview for rendering the DOM of a specific page.
Tidy is a binding for the Tidy html clean and repair utility which allows you to not only clean and otherwise manipulate html documents, but also traverse the […]
Popularity: unranked [?]
PHP6, Unicode and TextIterator features - Antoine Ughetto
I’ve just install the last version of PHP6 dev and I’ve decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it’s just my discoveries test on this features.
So the first thing to do is to enable PHP6 Unicode in the php.ini […]
Popularity: unranked [?]
Contributor on this blog - Antoine Ughetto
Hi,
After a long reflexion, we decide to open this blog to new contributors. So if you want to post something on developement (PHP, Javascript, AS, Android, Flex, Air, Processing, …….) sometimes but you don’t want to have your own blog, you can become a contributor here to submit your articles !
If you are interested, send […]
Popularity: unranked [?]
PHP 5 Design Pattern : Singleton - Antoine Ughetto
Let’s discover the design patterns and one of them, the Singleton.
In software engineering, the singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. Sometimes it is generalized to systems that operate […]
Popularity: unranked [?]