Feed aggregator

PHP 5.4.27 Released

php.announce - Fri, 04/04/2014 - 08:39
Categories: PHP Community, PHP.net

PHP.net: PHP 5.5.11 is released

PHPDeveloper.org - Thu, 03/04/2014 - 20:02

PHP.net has announced the latest release in the PHP 5.5.x series today - PHP 5.5.11.

The PHP development team announces the immediate availability of PHP 5.5.11. Several bugs were fixed in this release, some bundled libraries updated and a security issue has been fixed : CVE-2013-7345. We recommend all PHP 5.5 users to upgrade to this version.

Fixes in this release include:

  • Updates to core
  • Fixes in the cURL extension
  • Bugs corrected in the GD extension
  • A fix for the CVE-2013-7345 security issue in Fileinfo

You can download this latest release directly from the downloads page (Windows users here and you can find the full list of changes in the Changelog.

Link: http://www.php.net/archive/2014.php#id2014-04-02-1

NetTuts.com: Refactoring Legacy Code: Part 2 - Magic Strings & Constants

PHPDeveloper.org - Thu, 03/04/2014 - 19:47

NetTuts.com has posted the second part of their "Refactoring Legacy Code" series today continuing on from their beginning of the series. They continue the refactor of their "trivia" application.

Old code. Ugly code. Complicated code. Spaghetti code. Jibberish nonsense. In two words, Legacy Code. This is a series that will help you work and deal with it. We first met our legacy source code in our previous lesson. [...] The time for the first changes have come and what better way to understand a difficult code base than start to extract magic constants and strings into variables? These seemingly simple tasks will give us greater and sometimes unexpected insights into the inner workings of legacy code. We will need to figure out the intentions of the original code author and find the proper names for the pieces of code that we've never seen before.

They talk about refactoring out things like "magic strings" and other hard-coded return values and checks. They mention updating the tests to reflect these changes while keeping an eye out for "magic constants" as well.

Link: http://code.tutsplus.com/tutorials/refactoring-legacy-code-part-2-magic-strings-constants--cms-20527

Master Zend Framework: HowTo Use Child and Segment Routes to Build Simple Routing Tables

PHPDeveloper.org - Thu, 03/04/2014 - 18:15

Matthew Setter has a new post to his Master Zend Framework site today showing you how to use child and segment routes to create a routing table in your Zend Framework v2 application. These routes are "sub-routes" underneath a main route defined in the main router configuration.

Routing is one of the key requirements in modern applications, especially in Zend Framework 2; but they shouldn't be overly-complicated. Today, we're going to look at how to build a routing table, simply and easily using child and segment routes. [...] But how would we do that? Gladly, it's quite simply, using a combination of [the] two route types: Segment and Child Routes. I've made a complete example, which's available in this Gist. Feel free to skip straight to that. But otherwise, let's step through the annotated version together.

He sets the stage with an example in a "writing pipeline" application that helps him predict his income from his freelance writing. He describes the main controllers and the routing configurations they might share. In his example code, he shows how to define the routes and modify them to use segments and child routes to handle constraints. There's also a section about extracting out the segments from the route.

Link: http://www.masterzendframework.com/tutorial/child-and-segment-routes

Optimizing MySQL Configuration

Planet-PHP - Thu, 03/04/2014 - 18:00

This entry is part 2 of 3 in the series Optimizing MySQL Introduction MySQL is one of the most used databases in conjunction with PHP. Making sure that your MySQL databases are running at their best is one of the most important aspects you have to consider whenever your web application grows. In this series […]

Continue reading %Optimizing MySQL Configuration%

Categories: Open Source, PHP Community

Three Devs & A Maybe Podcast: Introduction to Web Application Frameworks

PHPDeveloper.org - Thu, 03/04/2014 - 16:03

The Three Devs and a Maybe podcast have released their latest show, Episode #18 - Introduction to Web Application Frameworks.

This week we introduce web application frameworks into the software development mix. Starting of with what they actually are, we move on to the benefits and useful feature set they provide you.

There's a lot of things mentioned in this episode including topics like:

There's also mention of several PHP frameworks out there (both full-stack and micro) like Slim, Laravel, Zend Framework and CodeIgniter. You can listen to this latest episode either by downloading the mp3 or by subscribing to their feed to get this and other recent shows.

Link: http://threedevsandamaybe.com/posts/introduction-to-web-application-frameworks

Community News: Packagist Latest Releases for 04.03.2014

PHPDeveloper.org - Thu, 03/04/2014 - 15:03
Recent releases from the Packagist:

ninjaconsultant: gallifrey-feels: awkwardsmilememe: THIS CROW...

Planet-PHP - Thu, 03/04/2014 - 07:55


ninjaconsultant:

gallifrey-feels:

awkwardsmilememe:

THIS CROW FUCKING UNDERSTANDS WATER DISPLACEMENT. WHY THE FUCK DO I HAVE TO BE TOLD EVERY YEAR BY A TEACHER HOW WATER DISPLACEMENT WORKS. DO THEY THINK I’M LESS INTELLIGENT THAN A FUCKING CROW? FUCKING DONE.

this crow is smarter than some humans

Crows are super smart! Check out this Ted Talk about it: http://www.ted.com/talks/joshua_klein_on_the_intelligence_of_crows

Categories: Open Source, PHP Community

ninjaconsultant: gallifrey-feels: awkwardsmilememe: THIS CROW...

Planet-PHP - Thu, 03/04/2014 - 07:55


ninjaconsultant:

gallifrey-feels:

awkwardsmilememe:

THIS CROW FUCKING UNDERSTANDS WATER DISPLACEMENT. WHY THE FUCK DO I HAVE TO BE TOLD EVERY YEAR BY A TEACHER HOW WATER DISPLACEMENT WORKS. DO THEY THINK I’M LESS INTELLIGENT THAN A FUCKING CROW? FUCKING DONE.

this crow is smarter than some humans

Crows are super smart! Check out this Ted Talk about it: http://www.ted.com/talks/joshua_klein_on_the_intelligence_of_crows

Categories: Open Source, PHP Community

PHP 5.4.27 Released

Planet-PHP - Thu, 03/04/2014 - 02:00
The PHP development team announces the immediate availability of PHP 5.4.27. 6 bugs were fixed in this release, including CVE-2013-7345. All PHP 5.4 users are encouraged to upgrade to this version. For source downloads of PHP 5.4.27 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
Categories: Open Source, PHP Community

Optimizing MySQL Indexes

Planet-PHP - Wed, 02/04/2014 - 18:00

This entry is part 1 of 3 in the series Optimizing MySQL Introduction MySQL is one of the most used databases in conjunction with PHP. Making sure that your MySQL databases are running at their best is one of the most important aspects you have to consider whenever your web application grows. In this series […]

Continue reading %Optimizing MySQL Indexes%

Categories: Open Source, PHP Community

ServerGrove Blog: Deployment of Symfony2 applications with Ansible

PHPDeveloper.org - Wed, 02/04/2014 - 17:41

The ServerGrove blog has a new post today showing you how to deploy Symfony2 applications using Ansible, an automation tool that uses "playbooks" to define steps.

Ansible is a powerful automation engine that simplifies deploying systems and apps. Its popularity has been rising rapidly as developers and system administrators look for simpler ways to manage servers and deploy applications. The selling points of Ansible are: simplicity, agentless and extensible.

ServerGrove, traditionally a Capistrano/Capifony user, decided to give Ansible a try. They include the steps to go through to get the correct environment set up and how to execute commands on the remote servers. There's also an example of a sample task that updates packages on the remote server, moves a config file into place and restarts Apache. With this foundation, they get into the actual Symfony2 deployment, sharing their custom role that sets up the directory, clones the Git repository, runs Composer and executes an Assetic dump.

Link: http://blog.servergrove.com/2014/04/01/deployment-symfony2-applications-ansible

SitePoint Web Blog: HTTPS Basics

PHPDeveloper.org - Wed, 02/04/2014 - 16:06

If you're relatively new to web development, you might not know exactly what kinds of benefits that using an HTTPS connection might provide. In this new article from the SitePoint PHP blog, Mufleeh Sadique covers some of the basics of HTTPS and gives some reasons why to "go HTTPS" in your applications.

Hypertext Transfer Protocol Secure or Hypertext Transfer Protocol over SSL is used for secure communication over a network, or perhaps more importantly - over the Internet. You would see https:// in the URI and a lock icon in the browser when you access a page that uses HTTPS. [...] If you ever wondered whether and how to go HTTPS with your website, we'll attempt to clear this up in this article by briefly describing what HTTPS is about, and why and how to implement it.

He's broken the rest of the article up into a few different sections. The first answers the question "why HTTPS" with a few reasons including the most important - encrypted communication. In the second section, he starts showing you how to "go HTTPS" using a self-signed certificate to start. With the certificate installed, he moves into the last part, ensuring your application is always using the HTTPS version and redirecting anything else.

Link: http://www.sitepoint.com/https-basics

Community News: Packagist Latest Releases for 04.02.2014

PHPDeveloper.org - Wed, 02/04/2014 - 15:04
Recent releases from the Packagist:

Community News: Recent posts from PHP Quickfix

PHPDeveloper.org - Wed, 02/04/2014 - 14:09
Recent posts from the PHP Quickfix site:

PHP 5.5.11 is released

Planet-PHP - Wed, 02/04/2014 - 02:00
The PHP development team announces the immediate availability of PHP 5.5.11. Several bugs were fixed in this release, some bundled libraries updated and a security issue has been fixed : CVE-2013-7345. We recommand all PHP 5.5 users to upgrade to this version. For source downloads of PHP 5.5.11 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
Categories: Open Source, PHP Community

Inappropriate April’s Fools pranks

Planet-PHP - Tue, 01/04/2014 - 23:33

If you think that someone who is offended at a joke has no sense of humor, I invite you to watch this scene from the movie The Lives of Others. The setting is East Germany, Stasi headquarters. Please watch before you read further.

You probably all agree that this prank was cruel. Why? Because the perpetrator is of a higher rank and the joke involves a threat to the person’s career. Notice how the lower-rank member cannot shake off the anxiety even after he discovers that this was a mere joke.

Now let’s see how this translates into an April’s Fools prank. Suppose you are in a position of authority over someone: teacher, landlord, employer, military officer, etc. You decide to make a prank on your subject(s). Add to that a threat to the person’s career or livelihood, and you become a sadist, not a comedian. My son’s teacher threatened his education through an April’s Fools prank. Although I learned within minutes that it was a joke, my heart rate climbed and stayed there for over 30 minutes. I had a pain in my chest for even longer.

Be mindful of how your jokes could affect people. If you are in a position of authority, be extra careful. If in doubt, don’t make a prank. Causing people distress is not funny.

As a side note, you might want to watch the whole movie to gain interesting insight into phone surveillance and other subjects that still plague our modern world.

Categories: Open Source, PHP Community
Syndicate content