thanks for ur reply.....
i think i can explain again what the problem i have.......
this was the class code i hv created to get the error messages
<?php
class _Error_Handler
{
var $_e_type;
var $_e_message;
var $_e_file;
var $_e_line;
//Constructor
function _Error_Handler()
{
$this->_set_handler();
}
//Sets the Error Handler
function _set_handler()
{
set_error_handler(array(&$this,"handler"));
}
//error Handler
function handler($error_type, $error_message,$error_file, $error_line)
{
switch($error_type)
{
case E_ERROR:
$this->assign_values("Fatal Error",$error_message,$error_file,$error_line);
break;
case E_WARNING:
$this->assign_values("Warning",$error_message,$error_file,$error_line);
break;
case E_PARSE:
$this->assign_values("Parse Error",$error_message,$error_file,$error_line);
break;
case E_NOTICE:
$this->assign_values("Notice",$error_message,$error_file,$error_line);
break;
case E_COMPILE_WARNING:
$this->assign_values("Compile Warning",$error_message,$error_file,$error_line);
break;
case E_CORE_ERROR:
$this->assign_values("Core Error",$error_message,$error_file,$error_line);
break;
case E_CORE_WARNING:
$this->assign_values("Core WARNING",$error_message,$error_file,$error_line);
break;
case E_USER_ERROR:
$this->assign_values("User Error",$error_message,$error_file,$error_line);
break;
case E_USER_WARNING:
$this->assign_values("User Warning",$error_message,$error_file,$error_line);
break;
case E_USER_NOTICE:
$this->assign_values("User Notice",$error_message,$error_file,$error_line);
break;
case E_ALL:
$this->assign_values("All",$error_message,$error_file,$error_line);
break;
}
}
// function used to assign values for member variables
function assign_values($_etype,$_emessage,$_efile,$_eline)
{
$this->_e_type = $_etype;
$this->_e_message = $_emessage;
$this->_e_file = $_efile;
$this->_e_line = $_eline;
$this->show_error();
}
function show_error()
{
?>
<html>
<body onload="document.frm_error.submit();">
<form name="frm_error" action="errorpage.php" method="post">
<input type="hidden" name="etype" value="<?php echo $this->_e_type;?>">
<input type="hidden" name="emessage" value="<?php echo urlencode($this->_e_message); ?>">
<input type="hidden" name="efile" value="<?php echo $this->_e_file;?>">
<input type="hidden" name="eline" value="<?php echo $this->_e_line;?>">
</form>
</body>
</html>
<?php
}
}
$eh = new _Error_Handler();
?>
i am using this code to get the values in the errorpage.php
if (isset($_POST['emessage']))
{
$_e_message = htmlspecialchars($_POST['emessage'], ENT_QUOTES);
$str = $_e_message;
$newtext = wordwrap($str, 45, "/--/");
$str_array = explode("/--/",$newtext);
}
else
{
$_e_message = "";
}
i am getting links in error messages...so i am using urlencode and htmlspecialchars to get the full message with tag.........and i am using GD to display this error message in an image......
i am getting only the text displayed over the image not the link that was created........
now Weedpacket.......tell me is there any possibility to get the text with the link over an image.....