Im getting the following error message:
Parse error: syntax error, unexpected '[' in /home/ncrainc/public_html/index.php on line 111
This is line 111:
$domaintld = split( "@", $Email )[1];
This is line 105-117
else
{
$regexp = "([a-z0-9-]+)(\.[a-z0-9-]+)@([a-z0-9-]+)(\.[a-z0-9-]+)(\.[a-z]{2,4})\$";
$valid = 0;
if ( eregi( $regexp, $Email ) )
{
$domaintld = split( "@", $Email )[1];
$username = split( "@", $Email )[0];
if ( getmxrr( $domaintld, $mxrecords ) )
{
$ErrorMessage = $strErrorEmail;
}
}
Any help would be GREATLY appreciated
Ive attached the PHP file in a zip file, if you can take a crack at fixing it for me I would be so thankful, Thanks
JD