[nycphp-talk] Executing script variable.
David Rydell
drydell at worldnet.att.net
Wed May 14 09:17:30 EDT 2003
__FILE__ contains the current file name, __LINE__ contains the current line
number, __FUNCTION__ contains the current function and __CLASS__ contains
the current class ... see
http://www.php.net/manual/en/language.constants.predefined.php
-----Original Message-----
From: Mark Armendariz [mailto:nyphp at enobrev.com]
Sent: Tuesday, May 13, 2003 11:37 PM
To: NYPHP Talk
Subject: [nycphp-talk] Executing script variable.
Good evening all...
I run my own DB class, which has it's own error handler for MYSQL
errors. My problem is that whenever it spits out an error, I just get
the mysql error, which does a great job of describing the actaul sql
error, BUT... my issue is that my method requires a few includes.
SO, whenever I get my DB error, I never actually know which script the
error is coming from. So.. the QUESTION: Is there a variable, or a way
of formulating a variable, aside from settine a scriptname var at the
top of every file, that displays the file that the current class,
function, error, etc was called from?
Thanks!!!
Mark
--- Unsubscribe at http://nyphp.org/list/ ---
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.473 / Virus Database: 271 - Release Date: 4/17/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.473 / Virus Database: 271 - Release Date: 4/17/2003
More information about the talk
mailing list