Archive for July 18th, 2007

Zend Developer Zone: Contest! Write a small piece of sample code, win a free copy of Zend Studio

The Zend Developer Zone (and Zend) are running a new contest where you could win yourself a free copy of their popular Zend Studio IDE.

It’s a very poorly kept secret that Zend is working on the next generation of Zend Studio. They must be getting down to the ‘fit and finish’ pieces of the project because my buddy Yossi wrote me and asked me to enlist the help of the PHP community at large. So here’s his request. The Zend Studio team needs your help. They are looking for a code snippet to showcase the syntax highlighting and debugging capabilities of Zend Studio.

They’re looking for certain types of code snippets and a list of the criteria are included in the ZDZ post. The deadline’s at at midnight (Pacific) on July the 26th, so get those snippets together and get them sent off for your chance to win!

Continue Reading · Add comment

Nick Halstead’s Blog: PHP Competition Results - Runners up

Nick Halstead has posted the runners up in the PHP programming competition he conducted:

Finally we have a result, it has taken weeks of judging and lots of hard work. The scores are ready and today I will first announce the runners up from the Top 6. I will then tomorrow announce the 3rd place, then day after that second, you get the idea. The scoring was based upon a point system in which each judge had to rank the top 6 in order. The points from each judge were then compiled and the final scores calculated.

The project was to write a script that helped a user find the shortest “distance” between two words by replacing one letter at a time. The three that were the runners up were created by:

Come of the judges comments are also included in the post to get a feel for the thinking behind the rankings.

Continue Reading · Add comment

Brian Nelson’s Blog: Writing A Reverse Proxy in PHP5

Brian Nelson submitted a link to a new class he’s developed to fill a hole he hand and didn’t see anything that would easily fill it - having a reverse proxy in PHP5.

So I have been working on a little class to run a reverse proxy from PHP using cURL. I have extended this class for my own purposes (single-sign-on) to handle some special request parameters, but here it is. It has some warts, but it’s a good starting point. I would appreciate any pointers anyone has to offer.

His code uses the cURL functionality to set up a handler to push the requests through. Also included are an htaccess file and a two-line PHP example of how to use it to request a public site.

Continue Reading · Add comment

Derick Rethan’s Blog: XDebug 2 Released

Derick Rethans has officially announced the release of XDebug 2 today on his blog:

After almost four years of work, Xdebug 2 is finally ready. With improved functionality and many new features it is ready to totally change the way you develop in PHP. Some of the new features and updates include improved stack traces, execution traces to files, code coverage analysis and much improved remote debugging support. Xdebug’s documentation has also been rewritten for more clarity.

Derick also wants to find out who is user base is and has asked fellow developers and users to send him a postcard and let him know.

As always, you can get this latest version of the XDebug software from the project’s website - XDebug.org.

Continue Reading · Add comment

DevShed: Completing a Web Site Template using Inheritance in PHP 5

DevShed finishes off their two-part look at working with Inheritance in a PHP5 application (their web site template engine) with the second tutorial, a look at making the look consistent across the web engine’s outputted pages.

In this final installment of the series I’m going to complete the creation of the sample website by developing a pair of additional web pages, which will come in useful for building the typical “Products” and “Contact” sections of the web site in question.

They start with an overall look at how the class will end up before getting into the parts that will need to be added. They extend the base classes even more with more inheritance, making classes for both the Product and Contact pages to render the needed elements.

Continue Reading · Add comment