<?php
$i = 0;
do {
   $i++;
   $r = file_put_contents('file.txt', 'content');
} while($r === false && $i < 3);

if ($r === false) die('error');

?>

Makes sense? or is it enough to do it just once?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to