Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/07/2004, 16:20
supkrisnet
 
Fecha de Ingreso: julio-2004
Ubicación: Poza Rica Ver.,
Mensajes: 16
Antigüedad: 19 años, 9 meses
Puntos: 0
corregido...

http://mx.php.net/manual/en/function.fopen.php
"fopen() binds a named resource, specified by filename, to a stream. 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."

Mira lo que pasa de acuerdo a la documentacion de PHP, es que para abrir un archivo en un equipo remoto necesitas el protocolo(esquema), por ejemplo.
si es por protocolo http, seria: http://192.6.1.252/caja/web_socios.csv
si es por protocolo ftp, seria: ftp://192.6.1.252/caja/web_socios.csv
si por protocolo smb, seria: smb://192.6.1.252/caja/web_socios.csv


Ya que si no le colocas el protocolo a utilizar, lo toma como si fuera archivo un archivo local.

Recuerda si es ftp, o smb, deberia estar en un lugar publico., sin permisos de acceso

podrias probar con las Stream Functions

Código PHP:
[CODE]/* Read remote file from [url]www.example.com[/url] using HTTP */
$httpfile  file_get_contents("http://www.example.com/foo.txt");

/* Read remote file from [url]www.example.com[/url] using HTTPS */
$httpsfile file_get_contents("https://www.example.com/foo.txt");

/* Read remote file from ftp.example.com using FTP */
$ftpfile  file_get_contents("ftp://user:[email protected]/foo.txt");

/* Read remote file from ftp.example.com using FTPS */
$ftpsfile  file_get_contents("ftps://user:[email protected]/foo.txt");[/CODE
Nota: te escribe la referncia de la documentacion en Ingles, por que la de esta en español tiene palabras mal traducidas y fuera de contexto.