|
fopen() can only be used for local files, it dosn't know anything about connections through network layer.
In order to retrieve a file through the network, you will need to open a socket to the apropriate server, decide if that times out which means no connection, if it dosn't, then send a file_exist request through the socket, if thats a success you can open/fetch the file.
This however requires alot more code, than your fopen() call.
|