Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

- - - - -

PHP: Validate Email Address

validate

  • Please log in to reply
26 replies to this topic

#13 javivi_nano@hotmail.com

javivi_nano@hotmail.com

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 18 October 2007 - 06:31 AM

Gracias
  • 0

#14 javivi_nano@hotmail.com

javivi_nano@hotmail.com

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 18 October 2007 - 06:35 AM

Esto es la peste pa variar no funciona como ninguna otra funcion
  • 0

#15 John

John

    CC Mentor

  • Moderator
  • 4450 posts
  • Location:New York, NY

Posted 18 October 2007 - 09:28 AM

¿Necesita ayuda? ¡Hable inglés! Esto es un foro inglés.
  • 0

#16 PhpProgrammer

PhpProgrammer

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 20 November 2007 - 12:34 AM

Hi,
while using your code for email validate i found error

Fatal error: Call to undefined function getmxrr() in F:\Projects\WebSites\Test\tstSql.php on line 31

and when i use checkdnsrr the same error occured...

advice me...!
  • 0

#17 John

John

    CC Mentor

  • Moderator
  • 4450 posts
  • Location:New York, NY

Posted 20 November 2007 - 11:29 AM

From php.net

Note: This function is not implemented on Windows platforms. Try the » PEAR class » Net_DNS.


also from php.net

If you want to use getmxrr on windows...

<?php
function getmxrr($hostname, &$mxhosts)
{
$mxhosts = array();
exec('%SYSTEMDIRECTORY%\\nslookup.exe -q=mx '.escapeshellarg($hostname), $result_arr);
foreach($result_arr as $line)
{
if (preg_match("/.*mail exchanger = (.*)/", $line, $matches))
$mxhosts[] = $matches[1];
}
return( count($mxhosts) > 0 );
}//--End of workaround

//test..
getmxrr('yahoo.com', $mxhosts);
print_r($mxhosts);
?>

  • 0

#18 karixma_ext

karixma_ext

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 14 December 2007 - 06:17 AM

it's useful, thank's
  • 0

#19 drammen

drammen

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 19 December 2007 - 06:04 AM

Thnx Man
  • 0

#20 PhPMeasure

PhPMeasure

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 03 May 2008 - 04:55 PM

I have a broken validatemail.zip :(
Would you please attach for a new one?

Thanks a lot
  • 0

#21 John

John

    CC Mentor

  • Moderator
  • 4450 posts
  • Location:New York, NY

Posted 03 May 2008 - 07:29 PM

I have a broken validatemail.zip :(
Would you please attach for a new one?

Thanks a lot


It appears to work fine for me.
  • 0

#22 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 04 May 2008 - 06:58 AM

Me too - have you checked your internet connection, PhPMeasure?
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#23 pashmina

pashmina

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 14 May 2008 - 10:16 PM

woow!! nice hint. I'm doing a project right now. I really wish this could help. thanks for the help.
  • 0

#24 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 16 May 2008 - 08:24 AM

Why doesn't it help? :)
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?





Also tagged with one or more of these keywords: validate

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download