Dear All,
I am just a beginner to PHP programming, i am now writing a web-base email client to read and send email in a web-interface.
I have use the eregi_replace() function. But there is sometime errors like this:
Warning: Invalid range end in functions.php on line 394
And what exactly in line 394 is like that:
$body = eregi_replace("([#[:alnum:]+-.])@([#[:alnum:]+-]).([[:alnum:]+-_.]+[#[:alnum:]+]*)","<a href=\"$PHP_SELF?action=write&mail_to=\1@\2.\3&lang=$lang\">\1@\2.\3</a>", $body);
so why there is such error happens sometimes but sometimes not.
What's wrong in this script? How can i fix it?
Urgent help please and thanks!!