Addressed to: "Richard Lynch" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]