Hi all,

I want to create an if statement like:

if (-e $file) {
for($i = 0; $i < 10; $i++) {
sleep(1);
}
unlink $file;
}

Please tell me what will happen if in this period of time (10 seconds)
another page visitor, or program will delete $file.

Will this script try to delete a non existent $file?

Will the script check the if statement for each function under it, so it
will see that there is no $file, or I should use:

unlink $file if -e $file;

Thanks.

Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to