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!
if the user dont upload it how you know from 60 000 thousands of c:/.../img/*.jpg,*.gif,*.png wich image he is trying to upload... first he uploads then you manage... unless javascript can do it... i realyd ont know... but the problem is if the browser dont have javascript enabled
Simple answer: you can't. The only way to goof with the filesystem like that would be to write an ActiveX plugin - even then it would only work in IE. By far the most common method is to allow the user to upload the image, then before you put the image into your system, check the filesize with getimagesize().
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.