Archive for May 24th, 2007
PHP Developer - May 24th, 2007
The ThinkPHP Blog has some new information posted about a collaboration between the Mayflower Group and Stefan Esser (and the Hardened-PHP Project) to create SektionEins.
SektionEins specializes in Web Application Security, supporting every web platform available out there. Of course there is some special knowledge in the area of PHP included and the Chorizo and Consulting experience does add a lot of Web2.0 knowhow.
With SektionEins both Suhosin and Chorizo found a new home. And so does Web Application Security.
Currently, the new service hasn’t launched yet, but you can enter your email address to be notified when it’s open for business.
Continue Reading ·
PHP Developer - May 24th, 2007
On the Spindrop Blog today, there’s the series wrapup for their look at using the Zend Search Lucene functionality inside of a Symfony application.
This is part of an on going series about the Zend Search Lucene libraries and symfony. We’ll pretty everything up when we’re done. We now know how to manipulate the index via our model classes. But let’s actually do something useful with our search engine…let’s search!
This quick post shows how to initialize the object and run the find() on the data and fetch out the results. They even work the script so that, if the index for the search isn’t there, it generates it on the fly, then makes the search.
Continue Reading ·
PHP Developer - May 24th, 2007
Brian Moon has posted some thoughts about “the post” that Terry Chay recently wrote including comments on smart versus intelligent, object nonense, and funky function names.
So, if you are not smart, then stop coding PHP. Its a good thing that C developers are smart. They have to remember all those functions. Assembly language developers don’t have to remember functions. I guess they are not smart?
Ok, that last paragraph was tongue in cheek. Knowing 3000+ functions does not make you smart. It means you have a good memory. I will take intelligence over smart or a good memory any day.
His comments on the “object nonsense” makes note of the difference between functions and methods and the function naming issue - well, he has “no solid defense” as they do make it difficult to learn the language and send some developers running back to the manual to make sure the parameter order is right each time.
Continue Reading ·
PHP Developer - May 24th, 2007
From the PHP-Coding-Practices.com website today, there’s a new post that, using a tip from this article on BarelyFitz, shows how to control CSS information with PHP.
Today I stumbled upon a cool article that explains how one can control one’s CSS colors via PHP to former relative shades. How is this done I hear you asking? Just look at the following code.
His example uses the tutorial’s csscolor class and shows how to implement it with a base color and a highlight color and use it to generate variations of the same shades.
Continue Reading ·
PHP Developer - May 24th, 2007
Pádraic Brady is back today with the latest installment (part 5!) of his look at complex views in the Zend Framework. This time, her focuses on something called the Two-Step Pattern - a pattern similar to the Layouts pattern.
Part 5 of our series takes a small time-out from approaching a Composite View solution to reusable Views to take a peek at a simpler approach useful for simpler types of web applications. As we’ve discussed previously Composite Views allow the nesting of reusable View elements, effectively building a View based on a hierarchy of Views. But often there are simpler solutions to simpler problems. One such solution is the Two-Step View pattern, sometimes called Layouts if implemented in a specific way (as we do below!).
He gives the example of a simple website that needs a header and footer on every page. Rather than having to duplicate the header/footer calls across all of the pages, the Layout (Step-Two) pattern defines a single template that contains the header and footer but also uses a “main” area where the content is dynamically inserted.
He includes a full code example to help illustrate the point - a class, Zps_View, that is fed the path to the layouts and the layout files to use before rendering.
Continue Reading ·