About a week ago, I was doing some upgrades on my development machine and came across a rather nasty issue when it comes to how .php(s) files are associated with PHP in Apache. It seems that a number of distros including Gentoo (which is what I was using) are using the following configuration directive to make the PHP module parse PHP files:
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
The non-obvious problem with the above is that it will allow not only...
On the Continuous Development blog there's a new post showing how Olek Janiszewski came up with a solution to integrate PHPUnit and the Zend Framework via the watchr Ruby gem.Whenever working on a Ruby project, I'd run autotest with test_notifier to get immediate feedback on my code. Unfortunately, I don't know a similar utility integrated with Zend Framework and PHPUnit. [...] My solution is not as well designed and portable as test_notifier, and it doesn't play as nicely with my Zend application as...
On the Zend Developer Zone there's a recent post from Steven Lloyd Watkin giving you a quick start to a technique becoming more popular in the PHP development community - dependency injection.Dependency injection is a technique that allows for loosely coupled objects within a software application. Generally if an object requires access to the functionality of another it would be instantiated internally leading to tightly coupled systems. By implementing dependency injection we inject the required objects...
If you've been considering making the jump from conference attendee to speaker, Cal Evans has some great tips for you to help you get that proposal accepted at that next PHP conference.The selection committee has a responsibility to pick the topics and speakers that they know will give the attendees the highest return on their training dollar. That is why you see a lot of the same speakers at each big conference. [...] So how does a new speaker break into the national level? Here is the advice I give...
Today I am releasing PHP Manager for IIS 7 - beta, which is an IIS extension for setting up and managing multiple PHP installations on IIS 7 servers. It can be used to:
Register PHP with IIS;
Run multiple PHP versions side by side;
Check PHP runtime configuration and environment (output of phpinfo() function)
Configure various PHP settings
Enable or disable PHP extensions
Remotely manage PHP configuration in php.ini fille
The PHP Manager installation packages can be downloaded from these locations:
On PHPClasses.org today the latest episode of their "Lately in PHP" podcast has been posted - among other things, an interview with Michael Kimsal from WedDev Publishing.On this episode of the Lately in PHP podcast, Manuel Lemos and Ernani Joppert interview Michael Kimsal from the WebDev publishing company.Other topics include the launch of JSClasses.org, some of the new developments that have been made towards the next release in the PHP 5.x series (PHP 5.4?) like type hinting as well as some aspects of...
On his blog today Rob Allen has covered a helper for those using the Zend Framework that need to push the user around the site - the Redirector helper.Redirector does what it says on the tin and redirects the user to another page. I mostly use this when coming back from filling a form in, so that the user is then redirected to another page. In admin systems, this is usually a list page. On front end websites, this is usually a thank you page. Though for log-in forms, I tend to try and return the user to...
On the Web Builder Zone there's a recent article comparing one of the PHP IDEs growing in popularity, NetBeans, and one of the standbys of the development world, Vim. It compares how they both stack up for PHP development work by things like features, speed and ease of use.
Since this is an old religion war and it can't be solved out of context, my points will be specifically related to these programs. In this comparison, I collected examples of where Vim and NetBeans differ in behavior and performance....
PHP comes with a number of options to help developers dynamically generate PDF files from within their applications. The Haru and PDF lib extensions offer a complete API for dynamic PDF generation, and there also exist a number of open-source PHP components that can be used for the same purpose. This article will introduce you to one such component, the Zend_Pdf component that ships as part of the Zend Framework, and illustrate how it can be used to perform sophisticated PDF operations from within a PHP...
Latest PEAR Releases:
JSClasses, JSMag, PHP Alpha 1, PHP strict typing, IndieConf - Lately in PHP podcast episode 4
By Manuel Lemos
On this episode of the Lately in PHP podcast, Manuel Lemos and Ernani Joppert interview Michael Kimsal from the WebDev publishing company.
They also commented on the OpenID based single sign-on system that was implemented to reuse PHPClasses accounts on the JSClasses site to avoid making current...
Article originally from rooJSolutions blog
..It all started by having yet another look at the gir problem..... Keeping them up-to-date, and trying out the latest cool Gnome toys.
Job postings for the past week:Job Posting: Oakley Seeks Web Software Engineer (Foothill Ranch, CA)
Job Posting: Etouches.com Seeks Web Developer (Reading, UK or Ridgefield, CT)
Ahmed Shreef has a recent post to his blog about an issue he had converting UTF-16 strings over to UTF-8 with the iconv functionality in PHP. Specifically, he ended up with "rubbish unreadable characters" after the conversion.I had a problem last week with converting UTF-16 encoded strings to UTF-8 using PHP's iconv library on a Linux server. my code worked fine on my machine but the same code resulted in a rubbish unreadable characters on our production server.In his example (a basic "Hello World" in...
Those near the Bristol area of England might want to check out this new post from Stuart Herbert about the upcoming PHP SouthWest meetup happening September 1st in Bristol.The first meeting of the PHP SouthWest User Group will be at The Third Floor, Bush House, Bristol from 7pm. The room is booked (big thanks to Del for that), and we have a projector sorted too; now we just need our first speakers.Right now there's no definite speakers but Ryan Mauger could be presenting some of his Zend Framework tips...
Jani Hartikainen has pointed out a new application that can run on the iPad and allows you to write PHP without having to write out a single line of code.Yes, you heard that right! You can now code in PHP without having to write a single line of code '" amazing, right? The application that makes this possible is called Lemon ADE, and it runs on the iPad. In this post I'll go over how Lemon ADE works, and I have also recorded a short video demonstrating coding with the app.The tool is an abstract syntax...
Klaus Graefensteiner has a new post to his blog today with a full set of resources for those wanting to learn the CodeIgniter framework.I am taking two web development classes this Fall at Saddleback Community College. One is about AJAX and the other one about MySQL and PHP. Since the syllabus of both classes doesn't quite fit my interests, I am going to spice up AJAX with learning JQuery and MySQL/PHP with learning CodeIgniter. The following list has several links that I think will help me and possibly...
On Developer.com today there's a new tutorial about Quercus - the Java-based implementation of PHP - and how to get it up and running in your environment.Imagine the possibilities when a PHP developer can continue using the language's templating capabilities while leveraging Hibernate's object-relational features. Thanks to an open source project named Quercus, PHP and Java developers alike can mix and match the respective capabilities of both languages. [...] This approach (part of the movement that...
In this new post to the SeeIT Consult blog they show you how to use the Google Mail STMP service to send emails directly from PHP - no local MTA required.I use a local Apache/MySQL server on a laptop to do a lot of my development '" I don't need a full mail server just to send mail. Also SMTP servers on dynamically assigned IP addresses are so untrusted these days that you can be pretty much guaranteed that a decent spam filter will reject your email based on a RBL lookup. By using Google Mail's...
Kevin Schroeder has posted a new book excerpt from his "You Want to Do WHAT with PHP?" book - chapter two dealing with binary protocols.PHP developers know text really, really well. We can write SQL, we can build HTML, we can work with XML. But computers don't speak in terms of structured text markup, they speak in terms of bytes. And while there are many PHP developers who can speak at the lower level of bytes and bits and such, there are many more that have difficulty there.His short excerpt (from a...
Latest PHP Tweets