How can i display a image outside root directory in a popup window. I have tried Javascripts but it is not working. I also tried with writing another php file and using it to display the image but it only shows garbage content ?

I have been trying to do this for last three days but has not been successful