Ok, I have a script that uploads a file and right afterwords call's ImageMagick's convert to resize and save a thumbnail version. Problem is my server will run the script and not have enof time to write the file before the line to resize is called.
code snippet:
if (copy($the_img,$the_path3 . $the_img_name ))
{
echo "before command<br>";
exec ("c:/program_path/convert.exe -size 120x120 c:" . $path3 . $the_img_name . " -geometry 120x120 c:" . $path3 . $the_img_name . "_tmb.jpg");
echo "after command<br>";
}
how would one put in a timer to make the system wait until the file is wrote?
anyone know how to put in a timer or a check file&wait thing? Thanx