Archive for September 15th, 2006

Chris Hartjes’ Blog: A Speaker’s Perspective on php|works

If you didn’t get a change to make it to this year’s php/db|works conference, you might want to check out one developer’s perspective (Chris Hartjes) - from the preparations up to the days of the conference. Chris was presenting on What Can PHP Learn From Rails?.

You can see his progress (and experiences) in these series of posts:

Be sure to check back for more updates as the conference comes to a close.

Continue Reading · Add comment

InternetNews.com: Is PHP The Cure For The ‘Broken’ Web?

InternetNews.com starts off their latest article the same way Rasmus Lerdorf started off his keynote at php|works this year - “The Web is broken and it’s all your fault.”

He said the current state of the Internet includes a litany of broken items, but with a little help from PHP there may well be some hope for the Web yet.

The article talks about some of Rasmus’ other thoughts on the status of the web, and how, with the right functionality and knowledge spread out through the PHP community, the language can compensate for some of the “stupidity” that web programmers (and users) regularly see.

He also talks a bit about a “rich application delivery system”, MySQL versus PostgreSQL, parsing and compiling speed, and opcode caches.

Continue Reading · Add comment

ILoveJackDaniels.com: Regular Expressions Cheat Sheet

One of the more elusive concepts of programming can be working with regular expressions. Now, there’s lots of places to learn them and to get a handle on what they can do (such as this book), but what if you don’t need the full-blown reference and just want a quick and dirty reference source? ILoveJackDaniels.com is happy to be of service with their latest cheat sheet divided up into the different formats (anchors, character classes, assertions, escape characters, etc).

The Regular Expressions cheat sheet is designed to be printed on an A4 sheet of paper and live by a designer or developer’s desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Regular Expressions cheat sheet.

This time, they’ve posted it in a few different formats, including a torrent file to make for faster/easier download. They still have the usual methods (PDF and PNG) but you’ll need to visit the page for those links - it’s been requested not to directly link to them.

Continue Reading · Add comment

ThinkPHP Blog: SQL injections for dummies - and how to fix them

On the ThinkPHP Blog, there’s a look at how to handle SQL injections, including a video showing how their product, Chorizo handles their discovery in your application.

Well, database operations are bread-and-butter work for most PHP applications. PHP and MySQL, for example, have been like brother and sister for many years. You may have heard about “SQL injections”, a bad taste from the outside world of $_GET, $_POST, $_COOKIE and the like.

They mention the obvious - not accepting unfiltered input from users - and how the Chorizo and Morcilla software work to identify and comabt them in an application. You can even check out a Flash video of the process you’d need to take.

Continue Reading · Add comment

Alexander Netkachev’s Blog: Installing Propel object persistence layer for Web application

In his latest entry, Alexander Netkachev explains how to install the Propel object persistence layer and it’s needed packages into your PHP application.

Object persistence layer provides the developers with the API that allows them to operate with data of the application in object-oriented manner. The developers can use known OOP methods for searching for and restoring the objects from the database. Something like this you can find on the main page of the Propel project and in the Wikipedia article about ORM technology.

These enthusiastic words roused my interest in the technology and I promised myself I would spend some time on testing a software for generating object persistence classes. And I ready to try the Propel library, because it is used by the Symphony framework, which I plan to test in a couple of weeks.

He starts with a little background information about why he’s chosen to go with Propel and the process he followed to get things up and running smoothly. He links to the software you’ll need (Propel, Creole, and Phing) and gives the install structure and environment variables you’ll need to set. Finally, he gives an example .bat file to help perform the install automatically, reducing the problems that could happen when done manually.

Continue Reading · Add comment