how can encrypt image path thats in the database

Recommended Answers

All 2 Replies

Hmmm, Try this.

<?php 
//filename: image.php

$imagepath="phpimages/dog.jpg"; 

$image=imagecreatefromjpeg($imagepath); 

header('Content-Type: image/jpeg'); 

imagejpeg($image); 

?>

then use 
<img src="image.php" >
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.