Downloading File By PHP By Shiplu@cmyweb.net the code is a downloading function of a class. the class has some methods need to be explained. 1) debugMessage, it sends message to a call back function to a caller 2) doCallback, sends the amount of bytes read to a call back function to the caller\ 3) localfilename is the file where the remote file will be downloaded 4) lfp is localfilepointer