Date: 09/12/00
- Next message: Mikey: "[phplib] Sessions error - urgent help required please!"
- Previous message: Chris Cochella: "[phplib] db_mysql.inc error handling"
- In reply to: Chris Cochella: "[phplib] db_mysql.inc error handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
That incredible poetic wit Chris Cochella wrote:
> The custom error handling in db_mysql.inc is a great feature.
>
> One thing I would like is the ability to also report the page that the
> error occurred on.
>
> I have tried $PHP_SELF in this class but this does not work directly.
>
> Has anyone made such a modification? Any thoughts are greatly
> appreciated.
>
> Thanks,
>
> Chris
In what way does it not work?
While I have not modified db_mysql.inc in my application, I do have
another include file called "footer.inc" which is included on each
page. I use $PHP_SELF within it to do just what you suggest. My
code looks something like this:
<?php
$comurl = "/comment/comment.php3?";
$comurl = $comurl . "rev=" . urlencode("\$Revision: 1.4 $");
$comurl = $comurl . "&file=" . urlencode($PHP_SELF);
?>
<A TARGET=comments HREF="<? echo $comurl ?>">Comments</A>
-- Chris Johnson Chaska Internet Consulting LLP--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Mikey: "[phplib] Sessions error - urgent help required please!"
- Previous message: Chris Cochella: "[phplib] db_mysql.inc error handling"
- In reply to: Chris Cochella: "[phplib] db_mysql.inc error handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

