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

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...