I'm trying to write a script that will update the news on a site's front page. However, I can't get the script to write to the page. This is the important bit:
open FILE, '> test.php' or die $!;
print FILE "Hello" or die $!;
I know that using the > will overwrite the file instead of appending to it, but I'm just running this for a test right now, and >> doesn't do anything either. It doesn't throw any errors, but I can't seem to make it write to the file. It just appears to get lost somewhere between the script and the rest of the server.
If it helps, I'm stuck with a Windoze server, and the rest of the script executes fine.