Hello,
I'm using php to process files on a server. The problem is the scripts grab the files before they are completely copied over the network.
example
if(file_exists("./filename.eps"){
do(........process file)
}
This is what I was thinking but it doesn't work for some reason
if(file_exists("./filename.eps"){
$size = filesize("./filename.eps");
while($size != $size2){
$size = filesize("./filename.eps");
sleep(1);
$size2 = filesize("./filename.eps");
}
do(........process file)
}
any idea's or suggestions?
thank you