You are here: Re: General Advice - objects, classes and coding style « PHP Programming Language « IT news, forums, messages
Re: General Advice - objects, classes and coding style

Posted by JustinCarmony on 10/25/07 17:53

On Oct 24, 2:52 pm, turnitup <same@same> wrote:
> I am in the process of transforming a procedural code base into an OO
> code base. The code lends itself to this refactoring and it is proving
> an effective exercise.
>
> However, I am running into a few irritations.
>
> I am using __autoload to load class files corresponding to code names.
>
> I've cranked up error reporting, but if for some reason there is a
> syntax error or whatever in a class, the application crashes with no
> explanation. The bug hunt takes ages and lots of echoing.
>
> Is there anything I can do to help myself? Use of assert, or exceptions,
> or try-catch handling?

I would definitely check your php.ini's Error Reporting settings. To
find out what your PHP's settings are, you can make a new php file and
put:

<?php
echo phpinfo();
?>

It will show you where your php.ini file is, as well as your
display_error settings.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация