> ob_start(); > foreach ($foo as $bar) { > resizeImage(); > echo "Resizing image $bar"; > ob_flush; > flush(); > > } > > This way user will get response everytime image get resized. Can I > achive this with ajax and div?
A more 'ajax approach' would be to resize your images individually as they are requested by the browser. ie: get rid of the loop in php and apply it in html/js.