> The reason might be that the remote server have cURL while your local one doesn't. Thanks, Viggie. Both servers are set up pretty much the same, and both have cURL support. None of it makes sense! I tired of searching for a solution, so I managed a workaround by writing the file locally, then FTPing it over. Thanks for your help guys, Phil