|  | Posted by Jerry Stuckle on 10/25/06 10:51 
Pedro Graca wrote:> Edo wrote:
 >
 >>I will try to program php/sql forum for the software engineering project at
 >>University.
 >>Can you tell me something useful about programming such thing as a forum, or
 >>give me some tips how to start, design patterns, links, source codes,
 >>books...? Anything will help...
 >
 >
 > Use
 >
 >     error_reporting(E_ALL);
 >     ini_set('display_errors', '1');
 >
 > at the very top of *all* your scripts, right after the first <?php tag.
 > When the script produces no warnings or notices, you won't even need to
 > remove those lines :)
 >
 
 You should NEVER leave these lines in on a production server. Should
 something untoward happen (i.e. database crash), the error messages can
 easily expose information you don't wish to be public.
 
 Additionally, I can always tell a sloppy programmer when I get default
 messages like this.  Good programmers detect and handle errors,
 providing meaningful messages to users.
 
 --
 ==================
 Remove the "x" from my email address
 Jerry Stuckle
 JDS Computer Training Corp.
 jstucklex@attglobal.net
 ==================
  Navigation: [Reply to this message] |