Foros del Web » Programando para Internet » PHP »

[function.file]

Estas en el tema de [function.file] en el foro de PHP en Foros del Web. al tratar de ejecutar un script me parace el siguiente error: Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/root/public_html/v1/library.php on ...
  #1 (permalink)  
Antiguo 24/04/2007, 15:19
 
Fecha de Ingreso: enero-2003
Ubicación: Lima
Mensajes: 214
Antigüedad: 21 años, 3 meses
Puntos: 0
[function.file]

al tratar de ejecutar un script me parace el siguiente error:

Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/root/public_html/v1/library.php on line 49

Warning: file(http://www.url.com/browse?s=mp&t=&c=&l=&p=1) [function.file]: failed to open stream: no suitable wrapper could be found in /home/root/public_html/v1/library.php on line 49

Warning: implode() [function.implode]: Bad arguments. in /home/root/public_html/v1/library.php on line 51

__________________________________________________ ___

La linea 49 del archivo library.php contiene:

$results = file("http://www.url.com/browse?s=".$select."&t=".$time."&c=".$category."&l =&p=".$page);

La linea 51 deñ archivo library.php contiene:

$results = implode("", $results);

__________________________________________________ ___

Alguien me puede ayudar por favor
  #2 (permalink)  
Antiguo 24/04/2007, 17:52
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Re: [function.file]

La configuración del servidor no admite usar file() con urls, por eso no funciona.

Fijate si tenés acceso a esa configuración o si podés pedir a los administradores del servidor que la modifiquen.

Si no, tendrás que obtener el archivo con fsock_open...

Saludos.
  #3 (permalink)  
Antiguo 03/05/2007, 07:22
 
Fecha de Ingreso: abril-2007
Mensajes: 35
Antigüedad: 17 años
Puntos: 0
Re: [function.file]

Podrías decir qué script es?
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 10:35.