Pues eso, tengo problemas con un script que envía sms, el error es el siguiente:
Notice: Undefined offset: 0 in c:\inetpub\wwwroot\sms.php on line 45
Notice: Undefined offset: 0 in c:\inetpub\wwwroot\sms.php on line 49
Notice: Undefined offset: 1 in c:\inetpub\wwwroot\sms.php on line 45
Notice: Undefined offset: 1 in c:\inetpub\wwwroot\sms.php on line 49
Notice: Undefined offset: 1 in c:\inetpub\wwwroot\sms.php on line 51
Notice: Undefined offset: 2 in c:\inetpub\wwwroot\sms.php on line 45
Notice: Undefined offset: 2 in c:\inetpub\wwwroot\sms.php on line 49
Notice: Undefined offset: 2 in c:\inetpub\wwwroot\sms.php on line 51
Error while executing fopen sending method!
Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.
Y el código de la línea 45 a 52 (dónde dice que están los problemas) que envía es:
Código PHP:
if(strlen($snippet[$i]) > 50)
{
$description = substr($snippet[$i],0,50)."...";
} else {
$description = $snippet[$i];
}
$message .= $titles[$i]." - ".$description;
}