|
-
Feb 13th, 2005, 05:41 AM
#8
<?="Moderator"?>
Re: Importing an other php file [Part2]
 Originally Posted by visualAd
It won't work if you don't post the Error class too, as the DB object uses it.
woops forgot that 
its only to notify me if something goes wrong. still working on it, like everything else
PHP Code:
<?php if(!defined("ERROR.CLASS")) { define("ERROR.CLASS",true); class ERROR extends CONFIG { var $Error_EmailAddress = "[email protected]"; function ERROR($message) { $msg = $message; $msg .= "\n\r" . $_SERVER['REMOTE_ADDR']; $msg .= "\n\r" . date("D M j G:i:s T Y",time()); $headers = "From: ". $Error_EmailAddress."<" . $Error_EmailAddress . ">\r \n"; @mail($this->Error_EmailAddress,"ERROR",$msg,$headers); print "<pre>$msg</pre>"; } } } ?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|