when coding.say that i call function UpdateLog() which must open a file,append to it then close it.
alot of errors could rise(file is not there,unable to write..etc).
which is better,to return a false value and handle the error outside the function UpdateLog(),or to end it right there inside the UpdateLog() function if it couldn't find/update the file?
regards
Must read Review for Serious PHP Developers
NuSphere PhpED 5.5
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.5
(a popular PHP IDE) and
NuCoder 2.0
(a PHP Encoding Utility), read up on all the details.