PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This has probably been asked before but here goes. I have chmod'd a file to 0777 on one site. I'm trying to write to that file from another site using an "http" address for the file location. What would prevent me from writing to the file? I did a is_writable() test on the file and didn't succeed. Any comment on today's experiment would be appreciated... Thanks.
Thanks jshpro2. I was wondering how I might do it. But in short, there really is no way to do unless the script that is executing fwrite() is on the same server. Your cURL thing is a great idea.
neophyte wrote: there really is no way to do unless the script that is executing fwrite() is on the same server.
Over the HTTP protocol, no.
No problem, and another way to do it, if you didn't want your [sensitive] data over port 80, would be to write your own protocol using tcp/ip (php's socket functions), this is the same idea as the fwrite() script though.