PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 161 to 180 of 6889

Non-Alpha PHP in 6-7 charset

Non-Alpha PHP in 6-7 charset
Alex InfAhr 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.

Security in the Round

Security in the Round
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...

Switching to PHP 5.4 on OS X

Switching to PHP 5.4 on OS X
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...

Community News: Packagist Latest Releases for 12.16.2012

Community News: Packagist Latest Releases for 12.16.2012
Recent releases from the Packagist:opensoft/simple-serializer (1.0.0) aygon/jatun (1.0.0RC3) doctrine/doctrine-orm-module (0.5.6, 0.5.5) lf4php/lf4php-monolog (1.0.0) lf4php/lf4php-stdout (1.0.0) lf4php/lf4php (1.0.0) doctrine/doctrine-mongo-odm-module (0.1.2) trf4php/trf4php-doctrine (1.0.0) trf4php/trf4php (1.0.0) webignition/url (1.5.1) flame/framework (v2.0.0) dlu/dluphpsettings (0.1.0) dlu/dlutwbootstrapdemo (0.1.2, 0.1.1) dlu/dlutwbootstrap (0.1.1) twilio/sdk (3.8.3) unionofrad/li3_quality (v0.1)

More Than a Dot

More Than a Dot
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,...

On Libraries and Dependencies

On Libraries and Dependencies
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...

Community News: Packagist Latest Releases for 12.15.2012

Community News: Packagist Latest Releases for 12.15.2012
Recent releases from the Packagist:gremo/ede-bundle (v1.0.0) gremo/subscription-bundle (v1.0.0, 1.0.0) goutte/tree-bundle (v1.0) devtime/backbone-bundle (v0.9.9) jasonlewis/expressive-date (v1.0.1, v1.0.0) willdurand/expose-translation-bundle (0.1.1) campaignmonitor/createsend-php (v2.5.1) manymules/backbonejs-bundle (0.9.9)

Persistent Terminal Sessions

Persistent Terminal Sessions
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...

Writing Readable Code

Writing Readable Code
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 aoonea and the answer to others is aomore 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 1...

Enrise Blog: Debugging Your Web Application with TCPDump and Wireshark

Enrise Blog: Debugging Your Web Application with TCPDump and Wireshark
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...

Jonathan Hill: What Is Wrong With PHP's Semaphore Extension

Jonathan Hill: What Is Wrong With PHP's Semaphore Extension
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...

Websanova.com: Timezones, the Right Way

Websanova.com: Timezones, the Right Way
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...

Stan Lemon: Aura.Micro - Experimental Replacement for Silex

Stan Lemon: Aura.Micro - Experimental Replacement for Silex
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,...

Contribute to Contributors

Contribute to Contributors
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 ofAprominentAcontributors 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

Community News: Packagist Latest Releases for 12.14.2012

Community News: Packagist Latest Releases for 12.14.2012
Recent releases from the Packagist:friendsofsymfony/jsrouting-bundle (1.1.0) desarrolla2/rss-client-bundle (v1.0.2) desarrolla2/twitter-client (v1.0.0) 99designs/sera (v1.0.0) packfire/options (1.0.1) cloudlib/helpers (0.3.0) willdurand/expose-translation-bundle (0.1.0, 0.0.5, 0.0.4, 0.0.3) search/sphinxsearch-bundle (1.2.1) socalnick/scn-social-auth (1.3.1) avalanche123/imagine-bundle (v2.1.2) imagine/Imagine (v0.4.1) seld/jsonlint (1.1.0) simonjodet/gumdrop (1.3.0, 1.2.4) zircote/rhubarb (0.0.3)...

Community News: Sunshine PHP Announces Speakers & Sessions!

Community News: Sunshine PHP Announces Speakers & Sessions!
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...

Site News: Popular Posts for the Week of 12.14.2012

Site News: Popular Posts for the Week of 12.14.2012
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 Brandon...

The Value In Offering aoTime To Tinkera

The Value In Offering aoTime To Tinkera
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 [...]

Aura.Micro: Experimental Replacement for Silex

Aura.Micro: Experimental Replacement for Silex
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 aostuffa I a Continue reading a'

Continuous Deployment Practices

Continuous Deployment Practices
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