News Feed
Sections

News Archive
feed this:

Daniel Cousineau's Blog:
Displaying N-Deep Trees (Remember Your Algorithms Course?)
August 07, 2008 @ 12:03:23

On his Tower of Power blog Daniel Cousineau has written up a look at using a more detailed categorization method than just a parent/child relationship on your data - Tree Traversals.

If the software calls for only 2 levels of categorization (Parent and Child only), a simple nested for loop will suffice. However, software requirements change and you'll soon find yourself up shit creek without a paddle if you need to support 3 or 4 levels of nesting. [...] To those who's training is less formal (most web developers I meet have practical training, not formal), I'll help you out: Tree Traversals (or if you are completely lost, Recursion).

He creates a recursive function that, when passed in a category set with different types in it, can handle each of them and then calls itself again with the new child data. His sample code creates url out of a set of categories.

0 comments voice your opinion now!
tree category recursion tutorial parent child loop treetraversal



Expirmentalworks.net:
Inofficial PHP GIT repositories - Importing large trees
January 08, 2008 @ 10:24:00

David has posted an article to the Expirmentalworks.net blog about a task that he and Johannes Schluter have finished up - importing the PHP CVS tree over into Git.

A few month ago Johannes Schluter and I started discussing about GIT and other decentralized version control systems. During our exploration of GIT we thought about importing the PHP CVS tree into git. A few weeks later and a lot of wasted cpu time, we finally managed to provide an inofficial GIT mirror of the PHP CVS repository. It's provided by Johannes Schluter and mirrored by me.

The post documents the path they followed - using git-cvsimport, parsecvs and a path they needed to make - to finally get the import working without any flaws. You can check out their unofficial repository here (it's updates twice a day from the live CVS).

0 comments voice your opinion now!
git version control cvs tree import patch gitcvsimport parsecvs git version control cvs tree import patch gitcvsimport parsecvs


Derick Rethans' Blog:
eZ Components 2007.2
December 18, 2007 @ 13:47:00

According to this new post from Derick Rethans, the eZ Components group has release the latest edition of their component set - version 2007.2.

Today we released the next version of eZ Components. In this release, there are two new components.

These two new components are:

  • Tree - enables you to create, manipulate and query tree structures (with multiple compatible backends for gathering the data from)
  • Webdav - allows for the quick and easy setup of a WebDAV-enabled server.

You can find out more about these components and many more included in the component library at the project's website (as well as this latest download).

0 comments voice your opinion now!
ezcomponents release component tree webdav ezcomponents release component tree webdav


Derick Rethans' Blog:
eZ Components 2007.2alpha1
November 15, 2007 @ 10:21:00

Derick Rethans has pointed out the release of the latest alpha version of the eZ Components framework - 2007.2alpha1.

We've just released the first alpha version of the new eZ Components release, for which the full version is due to be released somewhere next month. There are two new components, but also many improvements to existing components. The new components are: Tree and Webdav.

The Tree component makes working with tree-based structures (via two tieins for the component - TreeDatabaseTiein & TreePersistentObjectTiein) and the Webdav component allows for the quick and easy addition of WevDAV functionality to your application.

0 comments voice your opinion now!
ezcomponents framework release component webdav tree ezcomponents framework release component webdav tree


Kevin van Zonneveld's Blog:
Convert anything to Tree Structures in PHP
October 09, 2007 @ 16:38:00

Kevin van Zonneveld has posted a new example today of how to convert anything into a tree structure with PHP:

With a function on this site: explodeTree(), you can explode any single-dimensional array into a full blown tree. The function uses a user-specified delimiter found in the keys of the original array to separate nodes and determine hierarchy.

Sample: with 3 lines of code you could have a full directory hierarchy in a multi-dimensional array if you specify the delimiter to be a '/' (slash).

Not only is the code included to make the tree from the data, but an example block of code showing how to use the result.

0 comments voice your opinion now!
tree structure convert tutorial code example usage tree structure convert tutorial code example usage


Derick Rethans' Blog:
More goodies in the eZ Components
September 18, 2007 @ 19:44:00

As mentioned by Derick Rethans on his blog today, there's some new versions of several (five) of the components in the next version of the eZ Components framework:

In the just released alpha versions you can find new features, such as better support for OpenID, a Database backend for OpenID authentication, a validating method for e-mail addresses, SMTP authentication support for DIGEST-MD5, CRAM-MD5, NTLM and LOGIN and encoding support for e-mail headers.

He also mentions other goodies like tree structure handling and functionality to support WebDav connections. Check out their roadmap to get a better idea of what's to come.

0 comments voice your opinion now!
ezcomponents goodies authentication mail url tree webdav ezcomponents goodies authentication mail url tree webdav


Internet Super Hero:
PHP mysqlnd and its tests
July 30, 2007 @ 15:55:00

The Internet Super Hero blog has posted some new tests using the mysqlnd driver for PHP and shows you how it's all done for you to follow along at home.

PHP extensions can test their userland (PHP) functionality using so called "phpt Tests". phpt Tests consist of several parts with their main part being regular PHP code to test PHP. On the website of the PHP Quality Assurance Team you can find a documentation of the phpt Tests syntax on the page Writing Tests, if your are interested in the details. Most extensions contain a tests/ subdirectory in the PHP source code to ship the tests together with C code of the extensions. So do ext/mysql and ext/mysqli.

They show the testing structure they used and some of the stats they found from their runs. The rest of the post is dedicated to how it was all set up:

  • implemented as phpt Tests
  • which need new settings
  • Using run-tests.php to run the tests
  • Failing tests
  • Useful run-tests.php options and features

They also briefly mention what a typical set of test results are (for the time the post was made).

0 comments voice your opinion now!
mysqlnd test tutorial php6 tree phpt mysqlnd test tutorial php6 tree phpt


Zend Developer Zone:
PHP Security Tips #8 & #9
March 13, 2007 @ 12:53:00

The Zend Developer Zone has the latest two of their security tips posted today - numer #8 and #9 - in their "PHP Security Tips" series.

  • In tip #8, they restate and reinforce a topic that's worth repeating - validating user input. They use the filter_var function as a simple, light way to start filtering your user's input.
  • Tip #9 suggests that you keep anything sensitive, anything at all that needs to be kept away from prying eyes, outside of your document root of the site.
You can check out more on these tips and lots of others in their full list of tips.

0 comments voice your opinion now!
securitytip user input filter sensitive data web tree securitytip user input filter sensitive data web tree


PHP-GTK Community Site:
Building a submenu in a GtkMenubar
December 06, 2006 @ 08:55:00

The PHP-GTK Community site is back again today with another quick tutorial showing how to build a submenu with the help of the GtkMenubar widget.

It's broken us into the key sections - details, a visual tree of the structure, the logic tree and relationships, and, finally the source code. It's a pretty simple process of creating the menu and appending the elements onto it, much like a normal drop down menu. The key is in the set_submenu function, creating a new object for the code to append the submenu elements to. The rest is just simple appends.

They've also included a screenshot to illustrate the end result.

0 comments voice your opinion now!
submenu gtkmenubar tutorial visual tree logical relationships submenu gtkmenubar tutorial visual tree logical relationships


William Candillon's Blog:
The Parse Tree generator
October 11, 2006 @ 10:49:00

William Candillon has made a quick post concerning his phpAspect project including a demo for anyone to work with and some documentation for the project.

I put this form online so you can try the parse tree extension without installing it: http://phpaspect.org/ast. You can upload your own php script and get the xml tree or the tree visualization in png format.

I also put a mini documentation on a wiki page: http://phpaspect.org/wiki/doku.php?id=parse_tree.

Check out the main project website for all of the info surrounding the phpAspect project and where it's headed.

0 comments voice your opinion now!
parse tree generator phpaspect ast demo wiki documentation parse tree generator phpaspect ast demo wiki documentation



Community Events











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


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

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