 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Error Handling in PHP
by Chris Cornutt November 10, 2011 @ 08:41:39
On PHPMaster.com today there's a new tutorial from Sneha Heda looking at error handling in PHP - the types of errors that can come up, how to throw your own and how to catch them appropriately.
Errors are the most common event a developer faces when programming. [...] To help reduce the number of errors in your code, and to mitigate their effects, proper error handling is essential in your web application. This article is a crash course in PHP error handling. You'll learn about PHP's built-in error reporting levels, and how to handle errors with custom error handlers and exception handling.
She starts with the different error reporting levels PHP offers, everything from the lightweight E_NOTICE out to E_ALL|E_STRICT. With this as a reference, she shows how to create a custom error handler (using set_error_handler). Also included is a look at exceptions and some of the more detailed information that comes with them - line numbers, messages, file the error was thrown from, etc.
voice your opinion now!
error handling tutorial exception custom handler reporting level
Brian Swan's Blog: Getting Started with SQL Server Reporting Services (SSRS) and PHP
by Chris Cornutt May 06, 2010 @ 10:12:15
Brian Swan has a new post to his MSDN blog today that looks at working with the SQL Server Reporting Services SDK and PHP to automatically create some reports based on the date in your database.
In this post I'll dive into the SSRS SDK for PHP that was recently released by the Interoperability team here at Microsoft. [...] The documentation in the SDK is complete with explanations for the classes that make up the SDK, code examples, and a "hello world" example. However, in this post, I'll build a simple web page (code attached to this post) that renders the Sales report that I created last week.
He starts off with an overview of how all of the technology will fit together and some of the things you'll need to have before you can get started - a user with the right permissions and a connection to the server. The "SSRSReport" class in the SDK gives you quick access to load a report based on a named location. You can then use methods like "RenderAsHTML" to output it as HTML or one of other methods (like CSV, text, PDF, etc).
voice your opinion now!
reporting services sqlserver ssrs sdk tutorial
ZendCasts.com: Reporting with Zend_Tool and Zend_Log
by Chris Cornutt April 28, 2010 @ 08:43:23
On the ZendCasts.com site there's a new screencast continuing their look at the Zend_Tool component by combining it with Zend_Log to do some easy reporting.
This video uses a collection of powerful PHP libraries in order to illustrate how easy it really is to build a command-line tool for reporting against XML files. We start off by logging visitor statistics in the controller into a log file with Zend_Log. Once data has been collected, we're then able to utilize SimpleXML, Zend_Date and the Zend_Tool component to build out a very simple reporting tool.
He suggests one possible use is to create a cron job that will regenerate the reports nightly. You can view the screencast in the post or download a copy of the project to get started right away.
voice your opinion now!
zendtool zendlog zendframework webcast tutorail reporting
PHPro.org: PHP Security
by Chris Cornutt September 18, 2008 @ 12:04:31
Kevin Waterson has posted a new article to his site today - an introductory look at security in your PHP applications.
One of the great benefits of PHP is its ease of access to new-comers. Its entry level is minimal and so attracts those looking for simple scripts to their sites. It is this same ease of access that becomes a problem as the new-comers begin to deal with input from users. Failure to adequately validate and sanitize data is the leading cause of security problems when dealing with PHP.
He looks at a few different areas that developers need to focus on (and be sure to filter on) like PHP_SELF, protection from email header injections, file inclusion and the use of error reporting to make handling user-generated errors "more correct".
voice your opinion now!
security tutorial phpself email header include error reporting
Padraic Brady's Blog: PHPSpec Reporting Gets A Needed Boost
by Chris Cornutt November 14, 2007 @ 14:25:00
Padraic Brady has made a few updates to the PHPSpec software he's developed in preparation for the first stable release - additions to the reporting functionality to give as much information as possible.
PHPSpec is closing in on its first stable release, so the time had finally come to spruce up its output! No more the simple reporting of failed specs - now you get a few more details in a readable format, exceptions and errors even come with traces. In addition, I've implemented specdoc output as an option (using "-s") so you can get a list of specs in their plain text form.
He's also included an example of the new output in the post as well, showing the results of both successful and errored responses. You can check out the actual spec files on the googlecode repository for the project and get more details on the project itself (including the latest development snapshots) on the project's website.
voice your opinion now!
phpspec reporting stable release spec snapshot phpspec reporting stable release spec snapshot
Zend Developer Zone: Security Tip of the Week
by Chris Cornutt March 05, 2007 @ 14:23:00
The Zend Developer Zone has starting up their own contribution to the security side of the PHP community - a "Security Tip of the Week" starting with the first three new ones posted just recently:
-
Tip number one involves a good recommendation - keeping your PHP version up to date. Many security issues and exploits have come around because of older versions and the issues they hold.
- Tip number two focuses on the errors that your site gives to the viewing public and the information they can betray (file locations, etc)
- Tip number three talks about using other applications to help you find issues in your code that you might not even know were there - such as Chorizo and the PHPSecInfo reporting tool.
Stay tuned for even more security goodness from Cal and the Zend Developer Zone over the coming weeks...
voice your opinion now!
securitytipoftheweek reporting tool securitytipoftheweek reporting tool
Zend Developer Zone: Actuate and Zend Collaborate to Deliver Reporting for PHP
by Chris Cornutt December 07, 2006 @ 13:37:27
The Zend Developer Zone has posted a press review with some good news for PHP developers all over - Zend and Acutate are collaborating to provide reporting (BIRT) to PHP.
he collaboration between Zend and Actuate has resulted in new capabilities in the 3.0 version of the Zend Platform, which is available today for download as a pre-release version at www.zend.com. Zend Platform 3.0 allows PHP developers to quickly integrate reporting capabilities, including charting, to web applications by calling Actuate BIRT reports via the Zend Java Bridge.
New functionality included in this collaboration includes flexibility when generating the reports (output formats/export options), an easy-to-use visual environment, and an integrated charting system including various graphing formats (like pie, chart, area, scatter, and stock).
Check out the full press release for the full story on this collaboration.
voice your opinion now!
press release acutate zend collaboration reporting graph press release acutate zend collaboration reporting graph
|
Community Events
Don't see your event here? Let us know!
|