You are here: Re: Error Handling « PHP « IT news, forums, messages
Re: Error Handling

Posted by Matthew Weier O'Phinney on 09/09/05 18:52

* Chuck Brockman <cjbrockman@gmail.com>:
> What is a good way to capture errors that occur. I've tried the
> following code in development, but it still spits out an error (Parse
> error: syntax error, unexpected '}', expecting ',' or ';' in
> X:\xxxx\xxxx\xxxx.php on line 7)
>
> <?
> // error handling test
>
> try{
> $test = 1;
> echo $test1

You're missing a semicolon at the end of the above line.

> }
> catch (Exception $e) {
> print "Exception caught\n";
> }
> ?>


--
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

 

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

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