Rand and file_put_contents
Posted: Fri Dec 30, 2011 5:36 pm
I'm going mad.
Here it is a single line code snippet
It should create 1 file with content "test", but every times it's executed it creates 2 files with the same content.
How is it possible?
Thanks.
Here it is a single line code snippet
Code: Select all
<?php
file_put_contents("/var/www/test/" . rand() . ".html", "test");
?>
How is it possible?
Thanks.