Page 1 of 1
fopen v fsockopen
Posted: Mon Apr 10, 2006 4:05 am
by malcolmboston
tell me, im baffled, what are the advantages of each, ive read php.net
Posted: Mon Apr 10, 2006 8:53 am
by feyd
Last I checked, you couldn't write to a remote page via fopen(). It only understands the URL wrapper protocols available through PHP while fsockopen() can communicate to nearly anything.
Posted: Mon Apr 10, 2006 1:19 pm
by Christopher
I'm sure they use the same streams code underneath. One has an interface for paths, the other for ports, but there is overlap (mainly due to the design of the Unix I/O system).