Archive for July 26th, 2007

Padraic Brady’s Blog: OpenID In PHP PEAR: Proposed!

Padraic Brady has an announcement posted to his blog today - his OpenID PEAR has officially been proposed to the PEAR group for consideration.

Yes, my OpenID 2.0 PHP5 Consumer has finally been proposed to PEAR. This brings the OpenID fanaticism on PEAR to four packages: OpenID_Consumer, Services_Yadis, Crypt_HMAC2, Crypt_DiffieHellman.

He’ll be working to get the code “further up to par” including Nonce validation, more consistent error reporting and other operation modes (like check_immediate). He’s also included a screencast in the post for those not familiar with OpenID to get their first dose.

Continue Reading · Add comment

AxisVista Blog: PHP5 DOM Based Template Engine

On the AxisVista blog, there’s a new tutorial looking at the creation of a PHP5 DOM-based templating engine that makes it easier for designers to work with a site and not have to know PHP to do so.

At the office today, I had a talk with our designers, so they want a “designer-friendly” template engine. Sounds easy, but it isn’t. That is why I decided to write this very short post to help others having such “easy” problems.

First he lays out the requirements for the project, then heads off to Google to see if there’s anything similar. He found PRADO but it still lacked some of what he needed. So, deciding on developing his own Templating system, he creates a system that supports:

  • Caching
  • WYSIWYG & Dynamic Tag Handlers
  • States
  • PHP Tags

The code (and results) are included in the post, both in code blocks and for download.

Continue Reading · Add comment

Roadsend.com: SiteManager Library Being Ported to PHP5

As mentioned by the International PHP Magazine site and on this Trac page for the Roadsend SiteManager software, they’re working on porting it up to PHP5.

The latest available version, Roadsend PHP SiteManager 4.0.0 beta, was ported to PHP5. Database access has switched from PEAR to PDO. A script is included to help port existing projects. This version of SiteManager no longer uses PEAR DB - it uses the PDO database routines in PHP5 so there are a few changes to make. There is a script included in bin/php4tophp5.php which you can run on your current scripts to make most of the changes

Currently, you can download the latest beta from their website and check out the Trac website for the project to keep up with the latest advancements.

Continue Reading · Add comment

Lukas Smith’s Blog: Its the end of the world as we know it.

In a post from Lukas Smith, he gives responses to some of the questions/comments people have to say about PHP, specifically in how it’s related to Java.

Whenever someone asks me why PHP is more “agile” than Java, I tell them that in PHP you can break most of the rules your comp sci course told you about and get away with it. Of course this means that you need PHP developers to constantly clean up their code.

He talks about rules for developing in PHP, one being not to change a method so make it incompatible with its parent. He recommends one way to avoid this - the E_STRICT warning to protect against possible conflicts and issues (the same kind of functionality in PHP6 is in E_FATAL though).

Please, lets get the sense back here. Lets not make things that are not fatal an E_FATAL. Lets use E_STRICT for the pedantic, lets add a E_DEPRECATED for all things deprecated. Lets not kill what makes PHP more agile than those other languages that think they know what I should be spending my time on.

Continue Reading · Add comment

Sending and Viewing Email with the PyMailGUI Client

In this third part of a six-part series you will learn how to send and view email with attachments with the PyMailGUI client as well as how to accomplish other tasks. This article is excerpted from chapter 15 of em Programming Python Third Edition em written by Mark Lutz O Reilly 2 6 ISBN 596 9259 . Copyright 2 6 O Reilly Media Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O Reilly Media….

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