MyBlogPlanner

simple regular expression to search all the emails from a web page.

Monday, April 12th, 2010

Hi Developers If you want to search all the emails from a web page you can use this simple regular expression to search all the email from any website.

(href=[”|\’])(mailto:)(.*?)([”|\’])

If you are using php script then your code will be like this.

preg_match(’(href=[”|\’])(mailto:)(.*?)([”|\’])’, $Your String, $Return the data in Array);

Digital forums resgiter problem for last 10 week.

Tuesday, June 16th, 2009

Last 2 month ago one of my office colleague signed up with digital forums and got  error and even not received any email from digital point

Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235

I thought it may be they have updated  some code so it is not working and will get fixed after some day.

Today I tried again with digital forums I am not able to login with my id. I have tried with some other friend id that was too not working. So I tried to sign up for an account and unfortunately the same error I see again

Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235

It seems dp is not doing any development or testing to there script. Do any one have any idea or facing problem like me. Please share your thought so me and other can get help on the matter.

Create New joomla password function

Monday, April 27th, 2009

Let me show you how you can create joomla password function

Here is the exmaple how you can create joomla 1.5.x password function.

function FnGenerateNewPassword($Password)
{
jimport(’joomla.user.helper’);

$salt        = JUserHelper::genRandomPassword(32);
$crypt        = JUserHelper::getCryptedPassword($Password, $salt);
$password    = $crypt.’:’.$salt;
return  $password;

}

Hope this will help you in some program. :)