Page 1 of 1

When Done Loading Image...

Posted: Mon Sep 15, 2003 9:02 pm
by Pineriver
Hi, I am wandering if anyone can figure out when an image being loaded by php start a variable. Like say I have "bigJPEG.jpg", I want it to have the image download completely before running a variable on the same script. This would be what it would do..
if("bigJPEG.jpg" is loaded) {
echo "The Image is loaded";
}

I have a script wich I cant use javascript so..
Thanks in Advance

Posted: Tue Sep 16, 2003 3:20 am
by twigletmac
Since PHP is server-side it has completely finished it's work before the image starts being downloaded to the client (browser). Therefore it is not possible to use PHP to replace JavaScript for functions such as this.

Basically for a client-side operation you need a client-side technology === JavaScript.

Mac