News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

John Lim's Blog:
Parallel Processing in PHP
September 22, 2008 @ 08:47:14

John Lim has two new posts covering parallel processing in PHP and how to use this "divide and conquer" idea to not only speed up your code but to make it more maintainable down the road.

In the first post:

One problem we were having is that some of our batch processing jobs were taking too long to run. In order to speed the processing, we tried to split the processing file into half, and let a separate PHP process run each job. [...] Here is our technique for running multiple parallel jobs in PHP. In this example, we have two job files: j1.php and j2.php we want to run.

The code is included for the job files and the "controller" that manages them. In the second article, he builds on this and shows a more practical example - finding the median of a set of records out of a database.

0 comments voice your opinion now!
parallel processing tutorial divide conquer


Nick Halstead's Blog:
Three New Programming Tips
December 05, 2007 @ 07:53:00

Nick Halstead has posted a few more of his programming tips in the series he's running - three more to be exact dealing with readable code, aggregation, and code structure tips.

You can check out the full list of his programming tips in this list.

0 comments voice your opinion now!
progamming tips readable aggregation inheritance comment divide progamming tips readable aggregation inheritance comment divide


Matt Kalinowski's Blog:
Determine Browser Speed with PHP
May 31, 2006 @ 05:52:52

On Matt Kalinowski's blog, there's a quick post with some code to help you test just how fast your user's browser speed is as they hit your site.

So, you have a site that offers both an enhanced and standard style page. However, you realize that not every web user is going to know if they would be best suited for either version. Therefor, this speed test will allow you to determine their speed. This could also be used in other situations as well, but the one stated above is the one I found most appropriate.

Basically, the script works with the microtime functionality in PHP to do some speed tests for the amount of data given divided by how long it takes that data to get out to the user.

0 comments voice your opinion now!
determine browser speed microtime divide determine browser speed microtime divide


Jared White's Blog:
Winning the PHP 5 Framework Wars
May 18, 2006 @ 05:51:11

It seems like every time you turn around, there's always someone going on about the "latest and greatest" framework that's just popped up and how it'll change the way you write your code. Of course, not all of them are all their cracked up to be, and in his new post Jared White looks at some of the things they'd need to be to make it.

The race is on to take a bite out of the Web development platform pie and become the dominant PHP 5 framework. Who are the players? What are the stakes? Who will win? This essay will spell it all out for you in black and white.

He starts with a clean slate, looking first at what a framework really is, it's usefulness, and a few of the general issues that surround their use. Also, based on the latest PHP stats (from Nexen.net), the gap between the use of PHP4 and PHP5 is still very large, making developing frameworks a bit more tricky.

Jared also lists out three objectives that the future of PHP will have to hold to make this gap get any smaller (and make developing applications a simpler process). Basically:

  • adoption for PHP 5.1+ needs to increase dramatically
  • standardized design patterns need to be established
  • a general need for interoperability between frameworks/applications.

0 comments voice your opinion now!
framework war php4 php5 divide adoption design patterns interoperability framework war php4 php5 divide adoption design patterns interoperability



Community Events





Don't see your event here?
Let us know!


package opinion series api install voicesoftheelephpant zendserver language bugfix framework library laravel interview release deployment unittest community introduction podcast symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework