Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/09/2010, 15:28
Avatar de AdrianSeg
AdrianSeg
 
Fecha de Ingreso: enero-2010
Mensajes: 595
Antigüedad: 14 años, 3 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. ?>