Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/10/2012, 09:08
ersito
 
Fecha de Ingreso: julio-2008
Mensajes: 84
Antigüedad: 15 años, 9 meses
Puntos: 0
file_get_contents con PHP 4.4.9

Hola, he hecho un script que usa get_file_contents y funciona correctamente cuando lo corro desde el navegador.

Pero cuando lo programo como una tarea Cron me da el siguiente error:

Cita:
X-Powered-By: PHP/4.4.9 Content-type: text/html

Warning: file_get_contents() expects at most 2 parameters, 3 given in ...
He probado a retirar el CONTEXT y sigue sin funcionar, dejándolo así:
Cita:
$file = file_get_contents($url, false);
Tampoco funciona así:
Cita:
$file = file_get_contents($url);
¿Alguna idea?
Notese que el Cron debe usar php 4.4.9

Gracias