Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/05/2005, 11:11
Avatar de yampoo
yampoo
 
Fecha de Ingreso: noviembre-2001
Ubicación: Vilanova i la Geltrú
Mensajes: 1.942
Antigüedad: 22 años, 5 meses
Puntos: 0
Error con script que envía sms

Hola,

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;
    } 
A ver sí me opdéis ayudar, gracias!!!.