Alex InfA¼hr has a pretty awesome blog post on how to execute non-alpha PHP with only $_=+();. Pretty amazing stuff please check it out here:
Non-Alpha PHP in 6-7 charset. To create assert it would be 99mb! Hehe.
As a developer, I know it's easy to get tunnel vision when it comes to security. You look through the lines of code in your app and try to think like an attacker. You try to break things, perform injection attacks, and escape your output appropriately, but you're missing something. Stick with me, and you'll see what I mean.
There has always been theater of one sort or another. As long as there've been stories to tell, there've been people sitting in a group enjoying them. Theater troupes were formed to...
I like using OS X's built-in packages where possible, but unfortunately Apple is way behind with their PHP package, having it locked on 5.3.15. In the past I've seen people use tools like Mamp, or Xampp to provide this for them, but frankly I'm not a big fan of these tools.
Homebrew provides a solution. Homebrew is OS X missing package manager, and it's an absolute great tool to work with. Getting started with it is a bit harder, as there's a few bigger dependencies you need, such as an up-to-date XCode...
Recent releases from the Packagist:opensoft/simple-serializer (1.0.0)
doctrine/doctrine-orm-module (0.5.6, 0.5.5)
dlu/dlutwbootstrapdemo (0.1.2, 0.1.1)
No one knows if it was a man, or a woman, or a child that first did it, but we do know that about 40,000 years ago, someone put a faint red dot on the wall of a cave in Spain.
Humankind has always felt a burning desire to record information and transmit it into the future. What that dot meant, no one really knows. Perhaps it was the first expression of binary?Perhaps it was just a dot.7,000 years later, and our ancestors were expressing themselves in the form of horses, panthers, cave bears, mammoths,...
Recently, Aura is creating some buzz that components of PHP frameworks should not have any dependencies. To quote Paul M. Jones' recent article on Aura:
The distinction is that all Aura packages (with the exception of the Framework package) are completely independent, and have no cross-package dependencies, whereas at least some of the components from Symfony2 and ZF2 have dependency requirements.
Or, quoting this article on replacing Silex with Aura.Micro:
I was recently working on a small project that...
Recent releases from the Packagist:gremo/ede-bundle (v1.0.0)
gremo/subscription-bundle (v1.0.0, 1.0.0)
jasonlewis/expressive-date (v1.0.1, v1.0.0)
Have you ever had a remote terminal session running, only to have your connection drop out half way through a large task? Then, you reconnect, not knowing anything about its progress (if any) and current status.
Screen is the solution to this problem. Screen allows you to start terminal sessions that you can disconnect from and resume at any time.I personally use screen a lot with Node.js web servers, so I can kick off the process, and resume my terminal session to check logs or errors, or restart the...
My experience taught me to be verbose and meaningful. I will not talk about code cosmetics. Here are three simple questions. How many times will you write this line of code? How many times will you read that line? How many other people will read it?
The answer to the first question is usually a€oonea€¯ and the answer to others is a€omore than onea€¯. Simple logic tells us that code must be optimized for reading, not writing. Say you just saved 4 characters on a function name. At your typing speed, that's...
On the Enrise blog Tim de Pater has posted about a different sort of method for debugging your web applications - using a combination of Wireshark and tcpdump to monitor your application's input and output.Everything is running great, until suddenly the monitoring is yelling, the load on several servers is rising, MySQL queries/second and the memcached commands/second going through the roof, Apache processes are higher than usual, and the website starts giving timeouts. Yes, that sucks. Of course you'll...
In this recent post to his site Jonathan Hill takes a look at the PHP semaphore extension and talks about some of the issues he's had with it.He lists five different pain points he discovered when trying to use the extension:
Lack of a true Semaphore
Undefined error handling
Undefined behavior of sem_get()
Cannot disable semaphore auto-releasing
A semaphore may be deleted when other processes are waiting to acquire it
The semaphore extension provides a PHP-based wrapper for the System V IPC family of...
On the Websanova.com site there's a recent post about doing timezones the right way when working with them in PHP and storing them in your (MySQL) database.Timezones are actually a very trivial concept but they seem to be overlooked and over complicated. [...] Rather than storing a timezone with each date it's better to just accept a standard time to store all your dates with, thus doing the conversion to that standard time before storing the value in the database. It doesn't really matter what time we...
With all of the recent talk about the Aura framework that's been happening lately, Stan Lemon thought it would be interesting to see how a microframework based on the Aura packages would be to create. He's posted about his experiences on his site today.I was recently working on a small project that used Silex. As I browsed my vendor folder, I realized how much extra "stuff" I had inherited with Silex. There were a bunch of other components required when all I wanted was some quick and easy routing,...
The holidays can be a trying time of year for everyone, with all the gift buying and stress and all. I wanted to take this time to make a plea. The open source software that all of us use is powered by volunteers! Show them your support by donating! I'm compiling a list here ofA prominentA contributors to donate to, and I strongly urge you to consider saying "thank you" to people who work hard to give you the tools and knowledge that you use every day! So, without anything further:Read more A»
Recent releases from the Packagist:friendsofsymfony/jsrouting-bundle (1.1.0)
willdurand/expose-translation-bundle (0.1.0, 0.0.5, 0.0.4, 0.0.3)
simonjodet/gumdrop (1.3.0, 1.2.4)
The Sunshine PHP conference has officially announced their speaker and session lists for next year's event (happening in Miami, Florida February 8th and 9th, 2013).The event will have a wide range of topics covered including:
Cryptography for the Average Developer
Continuous Integration in Real Life
Quickly Building and Deploying PHP Applications in the Cloud
Symfony2 + EmberJS for fun and profit
Introducing Tests in Legacy PHP Applications
Dependency Management with Composer
From POX to HATEOAS, Our...
Popular posts from PHPDeveloper.org for the past week:Paul Jones: How Is Aura Better Than (er, Different From ;-) Than Symfony and Zend?
Lorna Mitchell: 9 Magic Methods in PHP
David MĆ¼ller: Cross Domain AJAX Guide
Community News: Packagist Latest Releases for 12.08.2012
Chris Jones: Adding DTrace Probes to PHP Extensions
PHPMaster.com: Inversion of Control - The Hollywood Principle
Community News: Packagist Latest Releases for 12.09.2012
Community News: Packagist Latest Releases for 12.07.2012
Years ago, I worked for a company that had a strictly governed bug fixing process. The bugs to be fixed per release were specifically regimented, right down to the amount of hours available to fix each issue. Developers were expected to meet or beat their estimates, and failing to do so meant overtime (since the [...]
Stan Lemon writes on the Aura Project for PHP 5.4+ blog about an experiment he's trying: I was recently working on a small project that used Silex. As I browsed my vendor folder, I realized how much extra a€ostuffa€¯ I a€¦ Continue reading a†'
I may be a pedant, but I'm here to tell you that continuous deployment is a total misnomer. It's discrete. A true continuous process would have code flowing naturally from your brain, through your fingers, keystroke by keystroke, to production, through some sort of bizarre stream of consciousness pipeline.
Now that I've got that out of the way, I'll give you the common definition, which is that you ship changes on a commit-by-commit basis, or alternatively, as frequently as you desire. What most people...
Latest PHP Tweets