A few lines below, I discuss how to fetch a remote page and save it to my disk. But it only works with plain text files. How can I save a remote binary file?
Thank you, Luciano ES Santos, SP - Brasil
Do I recall you're using a Windows machine? Microsoft, in its infinite wisdom, created a system that meant binary files had to be treated differently from text files. In PHP this is reflected by the "w" mode becoming "wb" when fopen()ing.