how you can display for how much file is uploaded or copyed from another file. example i used to get banner from different site to c the flush() function in work but i dont c anything, do you know how to show loading bar for proccessing when page is loading. this is the way i tryed to use with flush() function.
eaxmple :
$row['image'] = "http://www.phpbuilder.com/RealMedia/ads/Creatives/House_InstantMessagingSprg03_1a/imp-spring2003-leo.gif";
if ($url_file = fopen($row[$field],"rb"))
{
$url_image_content="";
flush();
while (!feof($url_file))
$url_image_content.=fread($url_file,16384);
fclose($url_file);
flush();
if ($local_file = fopen($folder.$row[$id_field].".gif", "wb"))
{
fwrite($local_file,$url_image_content, strlen($url_image_content));
flush();
fclose($local_file);
}
else
{
die('Could not open local file for writing!');
}
}
else
{
die('Could not open remote file for reading!');
}