Re: the best so far
| From: | php3 at developersdesk dot com | Date: | Sat, 17 Feb 2001 10:04:47 +0000 |
| Subject: | Re: the best so far | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40311@lists.php.net to get a copy of this message | ||
Addressed to: "Richard Lynch" <richard@zend.com>
php-general@lists.php.net
** Reply to note from "Richard Lynch" <richard@zend.com> Fri, 16 Feb 2001 17:21:03
-0600
>
> Do you get the line number and filename of the script that *called* the
> query function, or is it always the query function itself.
>
> This is the sticking point for the original poster.
I get the line and file of the include file. Also, note that the $'s
should not be in there, I just removed them from the latest version of
the include file too, as it doesn't help much.
The idea of being able to get the line and file name info of where a
function was called from has come up on the developers list a couple of
times, and I'd love to see it happen, but it was shot down, and I'm
pretty sure it won't happen. The only way to do it would be like:
function Query( $Query, $Line, $File ) {
..
}
and call it like:
Query( $SomeQuery, __LINE__, __FILE__ );
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com