How to hide the physical path of the images

前端 未结 2 1316
清歌不尽
清歌不尽 2021-01-25 13:14

In my application i display the image of user by giving the physical path of the directories like http://www.example.com/user_images/abcdefghijk.jpg

But i dont want to

2条回答
  •  面向向阳花
    2021-01-25 13:57

    in php you can save a variable in session and append it to image's path like

    
    

    and in php file get the image reading from session its actual path and return the content by file_get_contents

    here is the source http://hashmode.com/hide-image-path-php/9

提交回复
热议问题