No, fopen and fwrite will open the file and write to it, thus changing the source file. What you want is using fsockopen() and write to the socket. Check the socket functions in the php manual and the http rfc for the format of what you have to write to the socket. But it's a lot easier to just use a form and have it submit.