Archive for April, 2007

Secunia.com: Debian Updates for PHP4 and PHP5 Users

As noted on the security update website, Secunia.com, Debian users can now update this distributions with the latest patches for both versions, PHP4 and PHP5.

Debian has issued an update for php4/php5. This fixes some vulnerabilities, which can be exploited by malicious, local users to bypass certain security restrictions, malicious users to disclose potentially sensitive information or compromise a vulnerable system, and by malicious people to compromise a vulnerable system.

Links to the advisory posts (that include the links to download the updated packages):

It is recommended that Debian users update their installations immediately so as to avoid any kind of security issue that might result from the vulnerability.

Continue Reading · Add comment

A Closer Look at Simple Components in Apache Tapestry

In the previous article we took a look at some of the components that are used most often in Tapestry applications and learned some important concepts related to them. At the end we found that we needed three components for our example application. In this article we will configure those components. We will also learn how to disable caching….

Refurbished and Used Networking Equipment Network Liquidators sells refurbished and used networking equipment for up to 95% off list, with a 1 year warranty. We buy and sell top brands like Cisco, Extreme, Foundry, and more. Call us for best pricing.

Continue Reading · Add comment

PHPKitchen.com: Many new features in latest 0.6.2 release of Seagull Framework

In a new post on the PHPKitchen blog, there’s information about the latest release of their framework - version 0.6.2 of the Seagull Framework.

The main focus of 0.6.2 has been managing module resources so that they are completely independent from the core framework and are easy to install. To that end, everything a module might need can now be bundled in a single archive which can be unzipped in the modules directory, and Seagull will take care of everything else during the install process.

Modules can now additionally contain any template or data resources, which include HTML, CSS, js and a range of data files. With the possibility of adding additional include paths, and config or setup files on a per-module basis, it’s much easier to incorporate advanced features into your projects without touching the core.

They list out some of the new core features the framework now has to offer including:

  • web-based installer now easier to use (Dmitri Lakachauskis)
  • Improved Ajax integration with Prototype with new docs added (Julien Casanova)
  • Added ability to add custom data to your modules, makes it easier to diverge from svn code, create file called data.custom.my.sql for this purpose
  • Input URL parsing strategies now configurable
  • Added an overlay debug block, displays system info

Along with these, there’s also a few new module improvements including enhanced RSS support, allowing members to select their own theme, and an Ajax username check included.

You can download this latest version from the Seagull Project’s homepage and get documentation/help from the forums or the mailing list.

Continue Reading · Add comment

Hasin Hayder’s Blog: Counting occurrence of a word in a String - Benchmarking of PHP functions

In an effort to add to the ever-growing list of “keeping it simple” benchmarks out there, Hasin Hayder presents his own results for the task of fining the number of times a word occurs in a given string.

Today I was just thinking what are the possible ways to count the occurrence of a specific word inside a string. I found some possible ways finally and I just benchmarked them. Wanna see the result?? - for sure you will find it interesting too.

Methods range from a simple split() and count() call out to using the regular expression functions to locate the matches. After running it four times (to check for accuracy), he the stats were pretty much the same. It looks like the substr+count method was the fastest overall with last place falling to the array function method.

Continue Reading · Add comment

Christian Stocker’s Blog: Profile XSLT transformations within PHP

Christian Stocker points out a handy patch for the PHP XSLT functionality today - one that allows you to test to see where in the transformation the most time is spent.

Look no further than this patch to the PHP XSL extension. It uses the built in profiler of libxslt to get the information which template was called how many times and how much time was spent in them. It may help in improving the speed of your XSLT transformations, like a PHP debugger can help in profiling your PHP scripts.

Besides the link, he also includes a simple sample script that uses the setProfiling function to write out to a text file the stats of the transformation. He also includes a (very beta) patch to the libxslt functionality itself to make it easier to not only time the overall execution of the xslt, but also allows for timing of other individual templates that might be included.

Continue Reading · Add comment