Sameer Borate has a quick tutorial posted to his site today about using PHP, specifically the IMAP functionality, to grab attachments off of emails from Gmail.Automatically extracting attachments from Gmail can be important for reasons where you need to process the attached files periodically with a CRON job. Also it can be useful for automatically archiving important attachments. Below is a simple proof-of-concept plain PHP code, devoid of any object-oriented features that extracts attachments from your...
Henri Bergius has a new post to his blog showing you how to use the popular Composer package management tool to manage dependencies in Heroku applications.While Heroku got its start from hosting Ruby on Rails applications, it nowadays supports many different environments in the Cedar stack. Node.js is what many use, but they also do support PHP. Dependency management is easy for Node.js applications as Heroku recognizes your package.json files and automatically installs the libraries needed via NPM.Until...
10 years of Xdebug and Xdebug 2.2.0 released
Tuesday, May 8th 2012, 14:00 BST
Today it has been ten years since the first release of Xdebug: version 0.7.0. I would like to celebrate this tenth anniversary with a new release: Xdebug 2.2.0. Xdebug 2.2 adds support for PHP 5.4 and provides some new features:
Colours on the command line
First of all there is now var_dump() overloading and colours on the command line. I've already written about that before, but here are the screenshots...
Latest PECL Releases:
This morning, I had a nice e-mail in my mailbox telling me I got accepted into the NorthEast PHP conference with no less than 3(!) topics! Awesome, and I would love to be part of the conference, however... the conference is organized by the community, and the way they work, there is no travel reimbursement.
Heroku is a very nice Platform-as-a-Service provider that allows you to focus on writing applications instead of managing servers. If your application code is already managed in Git, in most cases you only need to create a Heroku app setup, and then git push to deploy it on Heroku. Scaling your app is easy and there are many useful add-ons available in their "app store".
While Heroku got its start from hosting Ruby on Rails applications, it nowadays supports many different environments in the Cedar...
It's always the same issue... you write unit tests for a web-service, giving you a feeling of confidence about the correctness of your code. Then the service provider changes the response without notifying you. Suddenly your implementation doesn't work anymore, but even your continuous integration server says it's "all green".
So what happened?
Surely the fixture files you used are outdated, and since they won't get updated automatically your tests don't stand a chance to detect the change.
Wsunit to the...
The PHP development team would like to announce the immediate availability of PHP 5.4.3 and PHP 5.3.13. All users are encouraged to upgrade to PHP 5.4.3 or PHP 5.3.13The releases complete a fix for a vulnerability in CGI-based setups (CVE-2012-2311). Note: mod_php and php-fpm are not vulnerable to this attack.PHP 5.4.3 fixes a buffer overflow vulnerability in the apache_request_headers() (CVE-2012-2329). The PHP 5.3 series is not vulnerable to this issue.For source downloads of PHP 5.4.3 and PHP 5.3.13...
Ever since I remember, I have this inability to learn the most basic things, until I actually write down a couple notes or instructions somewhere. This is one of these notes blog posts - so in case it's too basic, just skip over it. Or bear with me.
ssh tunnels - useful and powerful. They can help me with all kinds of trickery - e.g. usually for remoting through a tight firewall setup to access remote resources. So point taken there are a lot of GUIs for this, but if you spend a couple minutes with the...
The phpDay/jsDay organizers have sent out a few last announcements before this year's conference happens next week, mostly dealing with some of the other happenings as a part of the event.
The final schedules for jsDay and phpDay are online:
almost around the corner, we have several important news!
Besides all of the great sessions during the day, they'll also have:
On the ZetCode.com site there's a five part tutorial posted about getting your PHP application up and running on a PostgreSQL database (updated on the 4th).This is a PHP tutorial for the PostgreSQL database. It covers the basics of PostgreSQL programming with PHP. The examples were created and tested on Linux. [...] PostgreSQL is a powerful, open source object-relational database system. It is a multi-user, multi-threaded database management system. It runs on multiple platforms including Linux, FreeBSD,...
Freek Lijten has posted the second part of his series looking at the SOLID development methodology. In this latest post his looks at the second letter in the acronym - "O" for "Open Closed Principle."Software that requires an enormous amount of changes to implement one new feature or fix a bug is unstable and should be considered as "bad". Software should be designed so, that in case of a new feature, no existing classes should have to change. In other words: it is closed for modification. Existing...
My friend Paul Reinheimer has put together an excellent product/service that is probably of use to many of you.
The product is called Natural Load Testing, and it harnesses some of the machinery that powers the also-excellent wonderproxy and its extremely useful VPN service.The gist is that once you've been granted an account (they're in private beta right now, but tell them I sent you, and if you're not a horrible person such as a spammer, scammer, or promoter of online timesuck virtual farming, you'll...
The PHP.net site as new post with some supplemental information for those users of the PHP CGI that might be effected by the recently announced bug, the reason for the most recent release. Unfortunately, this patch only fixes some of the cases of the problem, so they've amended their instructions to included a more effective mod_rewrite rule to help protect your applications.
PHP 5.3.12/5.4.2 do not fix all variations of the CGI issues described in CVE-2012-1823. It has also come to our attention that...
Kore Nordmann has a new post to his blog today about the officially announced PHP subconference happening at this year's FrOSCon (in August near Bonn, Germany).For the seventh time we will be at the Free and Open Source Conference (FrOSCon) in St. Augustin, near Bonn. This time we will organize a full fleged PHP subconference agian. We also offer space to discuss PHP related topics, or just hack with other open minded people around you. We would love to welcome you at the PHP subconference.Speakers for...
Latest PEAR Releases:
Will it ever Matter if PHP Sucks? - Lately in PHP podcast episode 23
By Manuel Lemos
Once in a while we see fans of other languages writing long articles on why PHP sucks and you should not use it. But will that ever matter?
That is one of the main topics discussed by Manuel Lemos and Ernani Joppert in the episode 23 of the Lately in PHP podcast, for the first time also recorded in video using Google Hangouts On Air.
They also covered other polemic ideas for future PHP versions like the pure PHP...
This years FrOSCon - one of the most awesome open source software conferences
- is right ahead and we are organizing a PHP ubconference gain this year.
Read more for details.
PHP 5.3.12/5.4.2 do not fix all variations of the CGI issues described
in CVE-2012-1823. It has also come to our attention that some sites use
an insecure cgiwrapper script to run PHP. These scripts will use $*
instead of "$@" to pass parameters to php-cgi which causes a number of
issues. Again, people using mod_php or php-fpm are not affected.
One way to address these CGI issues is to reject the request if the query string
contains a '-' and no '='. It can be done using Apache's mod_rewrite like...