On my server I want to write to a text file (actually I want to overwrite whatever is there). Here is my code:
//write to the new file
$fp = fopen("http://209.128.113.71/bodyVar.txt", "w");
fwrite($fp, $bodyVar);
fclose($fp);
It works on my other server, and if the file Iwant to overwrite isn't chmod 777, it will give me a warning.
But on this server (web host), it doesn't work however it doesn't give me a warning either.
Any ideas what might be wrong?