I have to write a string to a file and I can't use fopen, however all examples I find on the web rely on fopen. The string is generated on the fly. Is there even a way to do this with CURL?
I think that even if you cURL'd to the file, you'd still have to use fopen at some point to write the cURL POST parameters...
Apart from all the sarcasm going on, can you please explain a bit better your problem? Do you need to write to a *remote* file? What would you need cURL for? You can use that to POST (or GET, obviously) to a remote script, but I don't really understand your question...
you may think you're being clever and edgy, but you just come across as cocky and annoying. If I were you, I would refrain from insulting people that are trying to help you understand very basic things.