Facebook has released HipHop Virtual Machine (HHVM) which has 60 percent faster execution engine than its current PHP interpreter and uses 90 percent less memory. I wish official PHP start using this!
Facebook is using this Virtual Machine in its test environment. Facebook says it Just-In-Time complier.
This new HHVM… (Continue)
Using PHP information function, you can write small script to review your camera setting at the time of image capture. Here is small script to view images in a folder with few important settings.
Sample Output:
If you want more information for each image then un-comment the line (//print_r($exif['EXIF']);) and… (Continue)
A major version of PHPEd (v6), an IDE for PHP is ready to come into market. Many of you may know about PHPEd. It is good IDE but only not so good thing is that it is not open source.
New features in PHPEd 6 are greatly improved php code… (Continue)
Quicksort is one of the best method in sorting algorithm. It has best and average case performance as O(n Log n). It means for 100 element, sorting can take around 660 iterations whereas in bubble sort it will take around 10000 iteration. In the example below, which has eight elements,… (Continue)
Here is the code for a data structure items in PHP. It is about Bubble Sort. Bubble sort is the way of sorting data. This is regarded as bad algorithm due to its worst case performance O(n2). Average case performance is also same as O(n2). But this sorting algorithm is… (Continue)
First something about stream from PHP.net:
Stream came to PHP in version 4.3 to generalize file, network, data compression, and other operations which share a common set of functions and uses. In its simplest definition, a stream is a resource object which exhibits streamable behavior. That is, it can be… (Continue)
I went for an Interview and there interviewer asked me few questions. I disagreed on two questions and their answers. According to interviewer, it is must to use parenthesis while initializing class( new className()), but I said if it requires parameters then it is essential otherwise it is not. After… (Continue)
Here is a quick post. It is a product created from a play with YQL (Yahoo Query Language). YQL is very powerful in scrapping HTML from any page on web. Yahoo YQL and Yahoo Pipes are very powerful tool. Yahoo pipes is very good for merging Feed.
This YQL play… (Continue)
Before going into the details syntax of using Callbacks in PHP, we need a use case where we can use callbacks. Many PHP build-in functions uses callback function and then we need to just pass our callbacks. WordPress also accepts callback at many places.
Here the example presented gives us… (Continue)
PHP 5 has many XML extensions. Each one has its own advantages and disadvantages. Which one to select for our task. Suppose you know some XML techniques and can dive into the XML extension whichever is suitable then you first need to know all the available extensions.
I tried to… (Continue)