RE: [PHP-ES] ?Podeis_corregirme_el_csdigo?
| From: | monoaxido at cantv dot net | Date: | Fri, 23 Nov 2001 18:23:28 +0000 |
| Subject: | RE: [PHP-ES] ?Podeis_corregirme_el_csdigo? | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-15957@lists.php.net to get a copy of this message | ||
> if(!$contERR)
> return 1;
> else
> return 0;
donde estan los { } del if ?
-----Mensaje original-----
De: Tequila AzTk [mailto:alekga@yahoo.com]
Enviado el: Viernes, 23 de Noviembre de 2001 02:16 p.m.
Para: lista@phpes.com
Asunto: Re: [PHP-ES] ?Podeis_corregirme_el_csdigo?
no es por mala onda, pero oye, eres programador, esa es tu tarea
:)
Suerte
-AzTk-
--- Kiro <ferre@inicia.es> wrote:
> Este csdigo me le dieron en la lista, no se si funcionaba, le
> modifiqui un poco y no funciona.
>
> <?
> $a="$mensaje";
> $b="$caracteresdisponibles";
> $d="$publicidad";
> function sms_separado($a){
> if(strlen($a)>$b){
> $z1=0;
> for($i=0;$i<intval((strlen($a)/$b))+1;$i++){
> $res[]=substr($a,$z1,$b);
> $z1+=$b;
> }
> }
> return $res;
> }
> function enviasms($tel,$resultado1){
> $contOK=0; $contERR=0;
> for($i=0;$i<count($resultado1);$i++){
>
> if(mail($tel@$server,"",$resultado1[$i].$d."[$i]","From:
> $remite\nReply-To: $remite")){
> $contOK++;
> }else{
> $contERR++;
> }
> }
> if(!$contERR)
> return 1;
> else
> return 0;
> }
> ?>
>
> muchas gracias.
>
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
---------------------------------------------------------------------
Archivo On-line: http://www.phpes.com/
Manual PHP en espaqol: http://www.php.net/manual/es/
Para dar de baja la suscripcisn, mande un mensaje a:
lista-unsubscribe@phpes.com