How to hide images URL with PHP and Ajax

July 16th, 2014 by
You can hide images url with php and ajax:
<img id="image_id" src="" alt="" /> 
PHP File:
header('Content-Type: image/jpeg');
Javascrip jQuery:
<script type="text/javascript">
	jQuery( document ).ready(function() {
jQuery('#image_id').attr('src', 'pathtophpfile.php'); });

Post a Comment

You must be logged in to post a comment.

Cached at: 2024-05-25 12:21:38pm