News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Brandon Savage's Blog:
Bug-Free Your Bug-Fixing Toolkit (Part 1 of N)
October 16, 2008 @ 10:29:57

Brandon Savage has the first part of a series posted (with N parts) showing off some of the tools that PHP already has built in to make your debugging life easier.

PHP has a large number of tools for fixing bugs and resolving underlying issues. But many people don't know what they are, and some of them are extensions requiring installation in order to work. In this series, we'll explore some features for debugging PHP scripts, from the most basic to more advanced.

He looks at three of the most basic ones (and ones that most developers I know out there use every day) - var_dump, print_r and var_export. Examples of each in use are included...

0 comments voice your opinion now!
debug tool included vardump printr varexport tutorial



Brian Moon's Blog:
Big arrays in PHP
February 27, 2007 @ 07:50:00

In his latest blog entry, Brian Moon takes a look at using big arrays in PHP - how efficient it is and what can be done to ease things a bit.

So, at dealnews, we have a category tree. To make life easy, we dump it to an array in a file that we can include on any page. It has 420 entries. So, I was curious how efficient this was. I noticed that some code that was using this array was jumping in memory usage as soon as I ran the script.

His tests showed that the memory jump from before and after the array was significant (5 MB for his test). He tested different methods of storage for the array including a var_export and serializing the data (the lowest memory option).

0 comments voice your opinion now!
large array optimize performance varexport serialize memory usage large array optimize performance varexport serialize memory usage



Community Events









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


conference job package code application release ajax security example releases zendframework PEAR framework developer PHP5 database mysql zend book cakephp

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