News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ibuildings techPortal:
phploc PHP Lines of Code
January 28, 2010 @ 08:59:36

On the Ibuildings techPortal today there's a new article from Lorna Mitchell looking at the phploc tool as a way to analyze your code and pick out a whole selection of statistics.

This has been a feature of PHPUnit for some time but has been released as a separate project in the phpunit pear channel. The nature of PHPUnit means that many of these statistics can be collected while the tests are running, which is why it was added to that tool in the first instance.

Stats gathered include the number of directories, files, interfaces, methods, functions and constants with more details for each (like visibility, actual lines of code contained in them and the cyclomatic complexity). The tool is very simple to use - just call it from the command like and give it a path to your codebase. It does the rest and spits out a text-based report.

0 comments voice your opinion now!
phploc lines code analyze phpunit


IBM developerWorks:
Getting Graphic with PHP
July 03, 2008 @ 10:20:00

The IBM developerWorks site has a new tutorial posted (registration/login required) talking about image creating in PHP using the GD library.

The purpose of this tutorial is to show you how to get started with the GD library and to provide a variety of techniques you can apply to your Web-page coding. The tutorial doesn't cover every GD function, but it teaches you the basics. The Resources section provides Web sites where you can learn more about using the GD library.

They go through the creation of sample images, working with gradients and lines, adding text, saving the image data out to a file and how to work with existing graphics to modify them.

0 comments voice your opinion now!
tutorial graphic gd image gradient text modify lines


DevShed:
Debugging and Performance
November 23, 2006 @ 13:42:00

In another part of their series of excerpts from the Zend PHP Certification Guide (from Zend), DevShed has posted this article talking about debugging and performance issues and methods.

Making mistakes is human, and so is fixing them. In your day-to-day programming adventures, it's inevitable to introduce bugs in your PHP code, especially when you're writing very complex applications with tens of thousands of lines of code spread across tens of files.

In this article they look at things like flattening if statements, spplitting single commands across multiple lines, and the difference between =, ==, and ===.

0 comments voice your opinion now!
debugging performance zend guide excerpt if statement equal lines debugging performance zend guide excerpt if statement equal lines


Tobin Bradley's Blog:
A Mapping Site in 19 Lines of Code
February 17, 2006 @ 07:15:33

On Tobin Bradley's blog today, there's a follow up to a previous artcile posted concerning getting MapServer working on a Windows/IIS install. This time, they show how, with a few lines of PHP code, you can create a map quickly and easily.

PHP/Mapscript makes this fantastically easy, with only 19 lines of code! You can download the code here.

The remainder of the post steps you through the process of installing the script and, with a few simple calls, you have a functional map of your chosen location.

1 comment voice your opinion now!
mapping site 19 lines MapServer Windows IIS PHP/Mapscript mapping site 19 lines MapServer Windows IIS PHP/Mapscript



Community Events





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


threedevsandamaybe unittest introduction list developer laravel series language refactor code community framework symfony2 interview api opinion release install testing podcast

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