Published News
This post discusses two variants of run-length encoding: the diagram encoding and the pattern substitution algorithms.
Read More
While developing a WordPress theme there are numerous occasions when you will need to communicate between PHP and jQuery (JavaScript). The concept may seam hard but it is really an easy process. To pass a variable from PHP to JS you will use the same approach as with passing a PHP variable to CSS. First I will show you how to pass a simple variable and then we will try to pass an Array.
Read More
You know it; I know it. We should be testing our code more than we do. Part of the reason we don’t, I think, is that we don’t know exactly how. Well, I’m getting rid of that excuse today: I’m teaching you to test your PHP with the EnhancePHP framework.
Read More
The WordPress Transients API is a very useful tool which allow developers to cache data such as the result of a query for future uses. In this article, I’ve compiled a list of useful practical example to div into the power of WordPress Transients API.
Read More
Codeception allows writing tests with PHP in descriptional way. Each test is written from a user's perspective in pure PHP in a single readable style. Each test can be executed either as a functional test for frameworks Symfony2, Zend, symfony, or with Selenium or PHP browser emulator.
Read More
Consider a sorting algorithm, a classic example in computer science: it can be implemented on widely different data structures, as long as their element can be compared and swapped. If we compare quicksort implemented on an array of integers or on a SplLinkedList containing objects, we see the same algorithm.
Read More
Up to PHP 5.3 we do not have any proper/core function which checks the status of the session.
Read More
This article will show the WordPress theme file execution hierarchy. In short, we’ll look at which files get served up when you load a page in WordPress.
Read More
This is a short post to share the results of a little investigation I did that was inspired by comments on a post I wrote about using SQL Azure for handling session data.
Read More
Back from my extended leave of absence, I’ll re-open the dusty cobwebbed depths of this blog to echo the sentiments of Paul Reinheimer in his recent article “Cookies don’t replace Sessions“. The topic is actually an old one since Ruby On Rails has adopted the strategy of storing application session data in cookies by default (take note, performance hounds).
Read More
Morpheus: Neo, I’m inside the Matrix right now. Sorry to give you the bad news but our agent-tracking PHP program needs a quick update. It currently uses PDO’s query() method with strings to fetch the status of all the Matrix agents from our database, but we need to do that with prepared queries instead.
Read More
On my article about storing session in MemCache, One of the reader had asked thay “Why should We store Session in Memcahce?“. So this is the article to answer this question.
Read More
An overview of the new features coming in PHP 5.4
Read More
Since October 2011, 5 million lines of the PEAR codebase has shifted to github.
Hand in hand with this shift has been the tireless work of Daniel C – someone who brazenly said “I will fix the failing packages!” in the tail end of last year.
Read More
By defualt PHP stores the session in file and these setting are defined in php.ini file.
Read More
If you're having problems with server load due to high volume of traffic you can try getting fast cheap web hosting for your sites. Although web hosting is part of the solution you also need to consider other bandwidth heavy website applications.