Reputation: 832
i can't find out how to save XML file to remote web server using PHP DOM.
I tried with $dom->save('http://www.somedomain.com/file.xml');
but without success. I've set permissions of 'file.xml' on remote server to 777 but that doesn't helps.
Upvotes: 0
Views: 958
Reputation: 360702
You can't write to a URL, unless the server supports WebDAV or the like. You'd need a script on the server which accepts http file uploads and processes them from there.
As to why this doesn't work, imagine how fun the web would be if anyone could save files to whatever URL they wanted.
Upvotes: 3