Foros del Web » Programando para Internet » PHP »

Problema funcion

Estas en el tema de Problema funcion en el foro de PHP en Foros del Web. Me tira este error la funcion: Warning: MIssing argunmen 1 for mifuncion on line 9 @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código PHP: Ver original <?php @ set_time_limit ( ...
  #1 (permalink)  
Antiguo 20/09/2010, 15:28
Avatar de AdrianSeg  
Fecha de Ingreso: enero-2010
Mensajes: 595
Antigüedad: 14 años, 2 meses
Puntos: 14
Problema funcion

Me tira este error la funcion:

Warning: MIssing argunmen 1 for mifuncion on line 9

Código PHP:
Ver original
  1. <?php
  2.  
  3. /* CONFIGURACIONES SIMPLES */
  4. $Url = 'http://localhost/web/ips.txt' ; // URL DONDE ESTARA EL TXT CON LAS DIRECCIONES URL
  5. $Seconds = 30 ;  // SEGS QUE PASARAN PARA QUE SE EJECUTE DE NUEVO AL SERVIDOR POR SI AHY CAMBIOS EN EL TXT
  6.  
  7.  
  8. function mifuncion($Url) {
  9.     global $Url , $Seconds ;
  10.     @unlink ( "c:\\windows\\etc\\aa" );
  11.     $O = fopen ( "c:\\windows\\etc\\aa\\file.txt", "a" );
  12.     @fwrite ( $O, @file_get_contents($Url) );
  13.     @fclose ( $O );
  14.     @sleep($Seconds);
  15.     mifuncion();
  16. }
  17. mifuncion();
  18.  
  19. ?>
  #2 (permalink)  
Antiguo 20/09/2010, 15:34
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: Problema funcion

te invito a leer el manual...
http://php.net/functions

claramente tu función usa un argumento, el cual no especificas al momento de llamarla...
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.
  #3 (permalink)  
Antiguo 20/09/2010, 15:42
Avatar de AdrianSeg  
Fecha de Ingreso: enero-2010
Mensajes: 595
Antigüedad: 14 años, 2 meses
Puntos: 14
Respuesta: Problema funcion

gracias ya lo aregle se me olvio pasarle argumentoc omo dice el manual :)

Etiquetas: funcion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:44.