I wanna return a link inside to <img>. I dont know what is the problem.
categoria.php
<HTML>....
<img src="categoriaMAIN.php?type=celular">
</HTML>
categoriaMAIN.php
<?php
$varcate= $_GET['type'];
if ($varcate == "celular")
echo "http://ecx.images-amazon.com/images/I/41l1yyZuyXL._AA160_.jpg";
?>
categoriaMAIN.php
Everyone else seemed to offer the readfile/grab and forward the content method. I thought I’d let the HTTP protocol do the work for us.