Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Kwiecień, 2013

Rob Allen: Simple logging of ZF2 exceptions

Rob Allen: Simple logging of ZF2 exceptions

In this new post to his site Rob Allen shows you how to implement a simple logging method for catching exceptions in your Zend Framework 2 application.

I recently had a problem with a ZF2 based website where users were reporting seeing the error page displayed, but I couldn’t reproduce in testing. To find this problem I decided to log every exception to a file so I could then go back and work out what was happening. In a standard ZF2 application, the easiest way to do this is to add a listener to the ‘dispatch.error’ event and log using ZendLog.

He uses an event listener to attach a service that contains a “logException” method. This method uses the ZendLog component to write out the error message to a local log file including a backtrace of where the issue occurred.

Link: http://akrabat.com/zend-framework-2/simple-logging-of-zf2-exceptions
Source: http://www.phpdeveloper.org/news/19507

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHP.net: PHP 5.5 beta 4 is now available

PHP.net: PHP 5.5 beta 4 is now available

The PHP.net site has posted about the release of PHP 5.5 beta 4, the last beta that will be made for this series.

The PHP development team announces the release of the 4th beta of PHP 5.5.0. This release fixes some bugs against beta 3 and cleans up some features. This is a development preview – do not use it in production.

Several bugs were fixed and changes made – you can read the complete list in the NEWS file. To get this latest beta and try it out with your applications (and run the tests) you can download it here (here for Windows).

Link: http://php.net/index.php#id2013-04-25-1
Source: http://www.phpdeveloper.org/news/19506

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Packagist Latest Releases for 04.25.2013

Community News: Packagist Latest Releases for 04.25.2013Recent releases from the Packagist:

Source: http://www.phpdeveloper.org/news/19505

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

7PHP.com: Zend Certifications Tips & Tricks – Hear It From Zend Certified Engineer Eric Hogue

7PHP.com: Zend Certifications Tips & Tricks – Hear It From Zend Certified Engineer Eric Hogue

On 7PHP.com there’s a new post that interviews a PHP community member, Eric Hogue, about his experience with the Zend Certified Engineer exam.

This is the 3rd set of Zend Certification Tips and Advice to help anyone taking either of the two Zend Exams powered by Zend Technologies: the Zend PHP Certification Exam and/or the Zend Framework Certification Exam. The aim being to help people who want to sit for those exams and inform them what it is all about & what to expect by hearing it from (pro) PHP Guys who have already been through it, that is => Hear It From Zend Certified Engineers!

He starts off with some general questions to Eric about the exam and its structure and how he prepared himself for it. He mentions some of the resources he used to study and what kind of topics to pay attention to. There’s also a few quotes included at the end giving another perspective on the exam (specifically, some frustrations).

Link: http://7php.com/zend-certification-advice-eric-hogue
Source: http://www.phpdeveloper.org/news/19492

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

7PHP.com: Zend Certifications Tips & Tricks – Hear It From Zend Certified Engineer Eric Hogue

7PHP.com: Zend Certifications Tips & Tricks – Hear It From Zend Certified Engineer Eric Hogue

On 7PHP.com there’s a new post that interviews a PHP community member, Eric Hogue, about his experience with the Zend Certified Engineer exam.

This is the 3rd set of Zend Certification Tips and Advice to help anyone taking either of the two Zend Exams powered by Zend Technologies: the Zend PHP Certification Exam and/or the Zend Framework Certification Exam. The aim being to help people who want to sit for those exams and inform them what it is all about & what to expect by hearing it from (pro) PHP Guys who have already been through it, that is => Hear It From Zend Certified Engineers!

He starts off with some general questions to Eric about the exam and its structure and how he prepared himself for it. He mentions some of the resources he used to study and what kind of topics to pay attention to. There’s also a few quotes included at the end giving another perspective on the exam (specifically, some frustrations).

Link: http://7php.com/zend-certification-advice-eric-hogue
Source: http://www.phpdeveloper.org/news/19492

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPMaster.com: Consuming Feeds with SimplePie

PHPMaster.com: Consuming Feeds with SimplePie

In a recent post to PHPMaster.com Kevin Mowry shows you how to use SimplePie, a simple to use programatic feed reader you can use to parse things like RSS feeds.

If you’re an avid feed consumer like I am, you might be a bit sad to see Google’s recent announcement of Reader reaching end of life. Reader was simple and easy to use, but there’s no reason you can’t have the same functionality with your own homegrown project. The PHP library SimplePie allows for quick and easy feed consumption and display. Here’s how you can get started on your own feed reader.

He helps you get it installed (via Composer) and shows you how to use some of its most basic functionality to parse the New York Times’ feed. He also includes examples of getting the information back out of the SimplePie object. There’s also some snippets that show how to only get the latest items and how to cache the results.

Link: http://phpmaster.com/consuming-feeds-with-simplepie
Source: http://www.phpdeveloper.org/news/19491

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPMaster.com: Consuming Feeds with SimplePie

PHPMaster.com: Consuming Feeds with SimplePie

In a recent post to PHPMaster.com Kevin Mowry shows you how to use SimplePie, a simple to use programatic feed reader you can use to parse things like RSS feeds.

If you’re an avid feed consumer like I am, you might be a bit sad to see Google’s recent announcement of Reader reaching end of life. Reader was simple and easy to use, but there’s no reason you can’t have the same functionality with your own homegrown project. The PHP library SimplePie allows for quick and easy feed consumption and display. Here’s how you can get started on your own feed reader.

He helps you get it installed (via Composer) and shows you how to use some of its most basic functionality to parse the New York Times’ feed. He also includes examples of getting the information back out of the SimplePie object. There’s also some snippets that show how to only get the latest items and how to cache the results.

Link: http://phpmaster.com/consuming-feeds-with-simplepie
Source: http://www.phpdeveloper.org/news/19491

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPMaster.com: Consuming Feeds with SimplePie

PHPMaster.com: Consuming Feeds with SimplePie

In a recent post to PHPMaster.com Kevin Mowry shows you how to use SimplePie, a simple to use programatic feed reader you can use to parse things like RSS feeds.

If you’re an avid feed consumer like I am, you might be a bit sad to see Google’s recent announcement of Reader reaching end of life. Reader was simple and easy to use, but there’s no reason you can’t have the same functionality with your own homegrown project. The PHP library SimplePie allows for quick and easy feed consumption and display. Here’s how you can get started on your own feed reader.

He helps you get it installed (via Composer) and shows you how to use some of its most basic functionality to parse the New York Times’ feed. He also includes examples of getting the information back out of the SimplePie object. There’s also some snippets that show how to only get the latest items and how to cache the results.

Link: http://phpmaster.com/consuming-feeds-with-simplepie
Source: http://www.phpdeveloper.org/news/19491

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

DZone.com: Trying out PHP Refactoring Browser

DZone.com: Trying out PHP Refactoring Browser

On DZone.com Giorgio Sironi has written up a post about some testing he’s done with the “”PHP Refactoring Browser” (more on that here) on some basic code examples.

IDE proponents love, in fact, an Integrated Development Environment that provides all the functionalities you need while writing and editing code; the followers of the Unix way typically write code in Vim while augmenting it via plugins where feasible and leveraging external tools that do one thing, and do it well. [...] Automated refactorings in PHP were out of the league of Vim and Unix users; thanks to Qafoo, however, a new open source tool is able to edit code with predefined refactoring recipes: PHP Refactoring Browser.

He goes through some of the basic features and functionality of the browser, setting expectations a bit. He shows how to get it installed (via Composer) and the results of some of his testing. Rather than including them all in the post, he opted to make actual commits on github of the changes.

Link: http://css.dzone.com/articles/trying-out-php-refactoring
Source: http://www.phpdeveloper.org/news/19490

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHP Town Hall Podcast: Episode #6 – PSR-X and the Mexican Standoff

PHP Town Hall Podcast: Episode #6 – PSR-X and the Mexican Standoff

The PHP Town Hall podcast has released the latest episode of their show – Episode #6, “PSR-X and the Mexican Standoff”.

PHP-FIG member Paul M. Jones and PHP contributor Anthony Ferrera come on the podcast with Ben, Phil and regular guest Zack Kitzmiller to discuss the new Package Orientated Autoloader Proposal (a.k.a PSR-X), and wether or not PSR’s should ever be amended.[...] Nobody wins, but the argument brings up a lot of interesting topics and points of view, and that is mostly what we are here for.

You can listen to this latest episode either through the in-page player by downloading the mp3 or by subscribing to their feed. The post also contains links to several of the groups and technologies mentioned in the episode.

Link: http://phptownhall.com/blog/2013/04/19/episode-6-psr-x-and-the-mexican-standoff
Source: http://www.phpdeveloper.org/news/19489

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>