P.S i know title sucks but i couldn't think of an appropriate title to explain this:(
Well i tried to think over this matter for days but couldn't found the logic of how it is done, so i guess only you guys can help me understand this
some of you may have notice that some image hosting give different version of uploaded images
Examples:
http://www.site.com/images/picname.png -->This is direct link to image
http://www.site.com/view/picname.png --->This one IS EXACTLY the page you get when u just upload an image(i.e other links like bb code displayed + preview of image).Thus if i put advertisements on this page , they will appear on every page
My question is how is this done in php
Some points to be noted
1.Image is not uploaded 2 times, wastage of memory and space so not feasible
2.It not temporary , like i can change picname.png to any picture name stored on server and it will load exactly as if i just uploaded the image and show me the directly link to image + other versions as well
How is this done , help me understand
Want to implement something similar:D