It's because the builtin function open can only open a file in your filesystem and not an url. If you want to rewrite a file in your website, you should first write a file in your local file system and then use ftp or some other protocol to copy the file to your website.
Reputation Points: 930
Solved Threads: 668
Posting Maven
Offline 2,655 posts
since Jul 2008