public marks

PUBLIC MARKS from mbertier with tags clevermarks & php

March 2008

Nexen.net : portail PHP et MySQL - DOM XML pour manipuler des documents

by 1 other (via)
Alejandro Gervasio publie un dossier bientôt complet sur les manipulations de noeuds XML via l'extension DOM. DOM est une des API de PHP pour manipuler des documents XML : elle permet l'ajout, le retrait ou la modification de noeuds, avec une gamme impressionnante de fonctions. Si vaste, cette gamme, qu'il est parfois difficile de comprendre comment on va faire pour réaliser certaines opérations simples.

<raphael.on.php/>: Sniffing refactoring needs

by 2 others
While still messing around with the PHP_CodeSniffer Pear package, I took a somehow jealous 1000 feet look at some prominent code inspection tools of the Java community: PMD and Checkstyle. Browsing their available rule sets/checks I soon recognized that guaranteeing the coding standard adherence is just a partial aspect of these tools. The following post will focus on one of these additional aspects, which is finding problems related to the code size of the inspected code artifacts, by showing how to port two selected rules to sniffs for utilization with the PHP_CodeSniffer tool. These ported sniffs can be used to automatically spot obvious code smells in the code base and to signal the need to apply the appropriate and odour reducing activity known as refactoring. Further more a complete set of code size sniffs, going beyond the trageted realm of the sniffs to come, could be used to speed up the feedback loop and to reduce the effort for manual code reviews.

February 2008

PHP Simple HTML DOM Parser

by 10 others, 3 comments (via)
A simple PHP HTML DOM parser written in PHP5 . I wrote it is because using PHP DOM XML library to parse HTML is really a pain. The origional idea is from Jose Solorzano's HTML Parser for PHP 4.

Homepage | OpenX

by 4 others (via)
The free, open source ad server trusted by more than 30,000 web publishers in over 100 countries around the world. OpenX is a powerful ad serving solution that puts control over online advertising back in the hands of publishers.

January 2008

Zend Framework 1.5.0 Preview Release now available

(via)
# New Zend_Form component with support for AJAX-enabled form elements # New action and view helpers for automating and facilitating AJAX requests and alternate response formats # Infocard, OpenID, and LDAP authentication adapters # Support for complex Lucene searches, including fuzzy, date-range, and wildcard queries # Support for Lucene 2.1 index file format # Partial, Placeholder, Action, and Header view helpers for advanced view composition and rendering # New Zend_Layout component for automating and facilitating site layouts # UTF-8 support for PDF documents # New Technorati, SlideShare, and Remember the Milk web services

Google Maps PHP Class: Phoogle Maps | systemsevendesigns Freelance Web Development Cornelius, NC

by 8 others
Phoogle Maps (pronounced like Foogle Maps) is a PHP class that integrates itself with the Google Maps API and with the Google Geocoding API to make an easy to use interface to display Google Maps on your site. With about 5 lines of PHP code you can display a customized Google Map on your website. Please note that you will need a free Google Maps API Key to use Phoogle Maps

Zend Framework in Action » The Book

Zend Framework in Action is a book that covers all you need to know to get started with the Zend Framework.

PECL :: Package :: python

(via)
This extension allows the Python interpreter to be embedded inside of PHP, allowing for the instantiate and manipulation of Python objects from within PHP.

December 2007

Published article "Image creation with PHP" - Kore Nordmann - PHP / Projects / Politics

by 1 other (via)
This is a full guide, covering several libraries (DOM/SVG, Cairo, Ming/Flash, GD) and all the important topics, when it comes to image creation.

PHP 5.3 feature list (summary)

(via)
Ilia Alshanetsky, still wearing his RM hat, announced the final tally of votes for features in PHP 5.3.

An Introduction to the Art of Unit Testing in PHP

by 1 other (via)
Unit Testing is often seen as an arcane, time consuming task - which it sometimes can be! But the point of spending time writing tests is to improve the quality of your source code so it has fewer overall bugs, many of which are detected early, a continual testing process to prevent new changes from changing the behaviour of older code, and to provide confidence that your code can be depended on. There are other benefits too, and we'll detail these later.

Suhosin 0.9.21 - XSS Protection - PHP Security Blog

It has been a very long time since the last Suhosin extension has been released, but today this has changed with the release of Suhosin 0.9.21. Among the changes are two new features that will protect applications that put too much trust into the SERVER variables from several XSS (and SQL injection) attacks. These features are suhosin.server.strip and suhosin.server.encode.

November 2007

Migrations: The answer in my head

(via)
The idea is to use the migrations approach made popular by Ruby on Rails but improve this concept with several key additions.

First release of phpUnderControl - Manuel Pichler

(via)
phpUnderControl integrates three of the best PHP development tools into CruiseControl, combined with an easy setup routine and a small example project. With the provided XSL-Stylesheets the generated output of PHPUnit, PHP_CodeSniffer and phpDocumentor can be visualized in CruiseContro

Stu On PHP - » Six Classic Ways To Group Your Web Servers

(via)
There are six classic ways to group the servers that your web-based applications run on. Many small PHP shops start small, and scale up their applications when necessary. However popular your customer’s website, all web-based applications written in PHP can be refactored to run on any of the classic architecture solutions, allowing you to grow with the demand that you’re experiencing.

October 2007

PECL :: Package :: sam

(via)
Simple Asynchronous Messaging (SAM) allows PHP applications to send and receive messages to a number of different Messaging and Queuing middleware systems through a very simple interface.

September 2007

Why Delphi for PHP should have used Prado instead of VCL « Eirik Hoem’s Blog

(via)
Now, why do I think that Prado is far superior to VCL, and why would it have been a better choice:

Mike Naberezny - Better PHPUnit Group Annotations

(via)
Running phpunit --group bug42 AllTests.php will run only the tests associated with bug #42, regardless of what files and groups those test methods span.

PHPIDS » Web Application Security 2.0 » Index

by 1 other (via)
PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application. The IDS neither strips, sanitizes nor filters any malicious input, it simply recognizes when an attacker tries to break your site and reacts in exactly the way you want it to. Based on a set of approved and heavily tested filter rules any attack is given a numerical impact rating which makes it easy to decide what kind of action should follow the hacking attempt. This could range from simple logging to sending out an emergency mail to the development team, displaying a warning message for the attacker or even ending the user’s session.

August 2007

php|tek Slides - Professional PHP

by 1 other
* Writing Maintainable PHP Code * Dependency Injection * Exceptional PHP

Why active record sucks

(via)
Active Record may be used to implement ORM, but it should never be used as an ORM.

Framework to develop simple Eclipse plugin using PHP - Eclipsepedia

by 1 other (via)
Abstract Framework to develop simple Eclipse plugin using PHP. Create a framework that could support developing simple Eclipse plugin using a PHP To Java bridge (Like Caucho's Quercus and other JSR 223 engines). Develop and document a sample plugin in PHP, so that PHP developers could create simple plugins.