Hia, is there a more efficent method of retrieving the line number and script filename in the literal call of a function then this?
Any insight or suggestions would be much appreciated, thanks.PHP Code:// call to function
error((__LINE__), (__FILE__), 'some error...');
function error($line_num, $filename, $error_msg, $error_type = E_USER_WARNING) {
//
![]()


Reply With Quote
Bookmarks