When Done Loading Image...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pineriver
Forum Commoner
Posts: 50
Joined: Fri Aug 15, 2003 5:24 pm

When Done Loading Image...

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply