Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2010, 07:19
sandinosaso
 
Fecha de Ingreso: julio-2008
Mensajes: 208
Antigüedad: 16 años, 4 meses
Puntos: 5
Respuesta: leer archivo plano servidor remoto

Que es "\\\\10.100.42.100\\memorias\\005_Abr022009. txt"

Deberias dar una ruta valida al archivo.
No seria "http://10.100.42.100/memorias/005_Abr022009. txt"...

En php.net en el manual dice:

If filename is of the form "scheme://...", it is assumed to be a URL and PHP will search for a protocol handler (also known as a wrapper) for that scheme. If no wrappers for that protocol are registered, PHP will emit a notice to help you track potential problems in your script and then continue as though filename specifies a regular file.

If PHP has decided that filename specifies a local file, then it will try to open a stream on that file. The file must be accessible to PHP, so you need to ensure that the file access permissions allow this access. If you have enabled safe mode, or open_basedir further restrictions may apply.



LEER EL MANUAL DE LA FUNCION fopen es BASICO antes de preguntar....
he aqui algunos ejemplos:

$handle = fopen("/home/rasmus/file.txt", "r");
$handle = fopen("/home/rasmus/file.gif", "wb");
$handle = fopen("http://www.example.com/", "r");
$handle = fopen("ftp://user:[email protected]/somefile.txt", "w");

Saludos espero lo resuelvas...
__________________
Lo maravilloso de aprender algo es que nadie puede arrebatárnoslo.