Botched Code

just a “botched code” showcase
  • Home
  • About

Archive

Posts Tagged ‘error’

Override php.ini to turn on error reporting, and display errors

February 13th, 2009 Lloyd Leung 1 comment

If you’re server doesn’t allow you to show error in php try the following lines at the near the top of your script.

Try this:

<?php
// Report all PHP errors
error_reporting(E_ALL);
ini_set("display_errors", 1);

If it still doesn’t show up, the web server daemon may not have write permissions to the default logging directory.

Categories: PHP Tags: display, error, PHP
RSS

Random Posts

  • Mac MAMP setup
  • symfony restful interface setup
  • PHP5 simple type hinting
  • found myself doing the start of a botched code…
  • Reusing a edit/create form

Tag Cloud

catchable error design pattern display error http_method MySQL PHP php phpdocs poor logic rest restful sfAdminThemejRollerPlugin Symfony-1.4 _csrf_token sf_method symfony 1.4 symfony admin generator 1.4 symfony apc cache doctrine testable error XSLT

Categories

  • General Programming
  • HTML
  • PHP
  • random
  • Symfony 1.3 & 1.4
  • Uncategorized

Blogroll

  • Lloyd Leung
  • Sean Villani

Archives

  • December 2011
  • November 2011
  • June 2011
  • January 2011
  • October 2010
  • April 2010
  • March 2010
  • February 2010
  • December 2009
  • October 2009
  • September 2009
  • August 2009
  • April 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008

Meta

  • Register
  • Log in
Top WordPress
Copyright © 2008-2011 Botched Code
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.