September 20, 2017

How to display image from an undisclosed folder using PHP?



You can easly display image using another PHP file.

You can pass image name after .php file.

Instead of linking directly to the image in your web page, the <img> tag links to the proxy script, and passes the name of the image as a query string.

Example:

<img src="proxy.php?img=profile.jpg" alt="This is drawn from a hidden folder" ... />

Enjoy!

2 comments:

  1. I really loved reading your thoughts; obviously you know what you are talking about! Your site is so easy to use too, I’ve bookmark it in my folder.

    web development company India

    ReplyDelete
  2. Thanks for sharing this information with us, please keep posting
    Hire Laeavel Developers

    ReplyDelete

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...