Hello.
I have an endless PHP script that seems to stop after about 30s/1m or so.
Here's the script:
<?php
$destsig = 'MSig.png';
$srcn = 1;
for ( ; ; )
{
$srcn = rand(1, 81);
$srcsig = $srcn . ".png";
copy($srcsig, $destsig);
sleep(15);
}
?>
Why does this not work? Is it server related issues?
Thanks in advance.
I have an endless PHP script that seems to stop after about 30s/1m or so.
Here's the script:
<?php
$destsig = 'MSig.png';
$srcn = 1;
for ( ; ; )
{
$srcn = rand(1, 81);
$srcsig = $srcn . ".png";
copy($srcsig, $destsig);
sleep(15);
}
?>
Why does this not work? Is it server related issues?
Thanks in advance.