Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.
0 · ·