Archive for April 6th, 2007

PHP-GTK Community Site: Project Spotlight - Tulip IDE, FreeTivi and CyCle IDE

The PHP-GTK Community website has spotlighted three pieces of software in three new posts - two of them editors and the other a PHP-GTK frontend to a popular TV application.

  • First is the CyCle IDE, a collaborative PHP development tool written completely in PHP-GTK. It’s still in its early stages, but it’s worth a look.
  • Next up is the myplayer frontend, FreeTivi - a PHP-GTK frontend that harnesses the power of the myplayer application and routes the video output into an imeded window.
  • Finally, the other IDE, Tulip IDE. It’s written in PHP-GTK as well and includes lots of the usual features - code completion, CVS controls, project explorer, etc. Check out the project’s homepage for more information.

Continue Reading · Add comment

Nexen.net: PHP month of functions

As mentioned in this new post from the Zend Developer Zone, Nexen.net (creator of the monthly PHP statistics) has kicked off something they call the Month of PHP Functions.

The month of PHP function aims at introducing PHP developers to a new PHP function every day : one that gets too little usage and spotlight, though is highly useful. […] During this month, we’ll present one or several function every day : they all deserve more attention. You don’t have to search for it : most of the time, it will be available in your PHP installation, especially if you’re using PHP 5.

So far, six functions have already been posted:

Keep an eye on their official page for the project to keep up with their latest function spotlight.

Continue Reading · Add comment

Felix Geisendorfer’s Blog: New fix for array junkies: Set::merge assembles yummy arrays

In a new post today, Felix Geisendorfer shares a method for merging together nested arrays correctly with a little help from functionality in the CakePHP framework.

Todays post features a brand new Set function called merge that was a side product of me working on a cool new cake class. If you’ve done a lot of array work in the past, you’ve probably have come in situations where you wanted to merge to arrays into a new one. Usually that’s a no-brainer in PHP by simply using the array_merge function (or the CakePHP wrapper ‘am’):

In about 90%++ of all cases, this will the usual way to merge two (or more) arrays into a new one. However, sometimes array_merge is not going to cut it. That’ll mostly be because it does not behave recursive and merging nested arrays can lead to unexpected results.

He even shows an example of the use of array_merge_recursive to try to get his desired results. With that still not working, he turns to CakePHP to help him out. He comes up with the Set::merge method to handle the merging of the arrays in what he thinks is a “more correct” way.

Continue Reading · Add comment

phpaddiction: Url Routing with PHP - Part Two

On the phpaddiction site today, there’s part two of their tutorial looking at URL routing with PHP (started here in Part One).

With the foundation of the routing in place (from part one), they move on to bigger and better things:

  • assign responsibilities (what needs to be accomplished)
  • creating a standard command object
  • interpreting the URLs and the parameters passed in it
  • using this information to dispatch the correct commands

There’s code examples through out to illustrate each point as well as one main one at the end to show how to put it all into action. Their script reads in the URL and sends the command along to the CommandDispatcher - check out this example page to see it in action.

Continue Reading · Add comment

Internet Super Hero Blog: MySQL native driver for PHP: mysqlnd-5.0.1-beta available

In a new post to the Internet Super Hero blogtoday, there’s an official announcement about the release of the latest MySQL native driver for PHP - version mysqlnd-5.0.1-beta.

Dear Developers, we are proud to announce the beta version of the MySQL native driver for PHP: mysqlnd 5.0.1-beta. The software is available for download on http://dev.mysql.com/downloads/connector/php-mysqlnd.

The driver provides an alternate way to connect to a MySQL server (4.1 or newer) and is a replacement for the standard libmysql library usually used to compile support into PHP. Updates in this new release include the addition of support for prepared statements and support for Unicode strings.

Continue Reading · Add comment