View Single Post
Old 03-09-2005, 10:17 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote