Forum Moderators: coopster
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<img src="image.php" alt="" width="500" height="300">
</body>
</html>
//we can even require this code from outside root and it works
//i just can't find a way to make variables work with this code
//i've even tried $GLOBAL variables with failure.
$file = "test/image.jpg"; }
header("Content-Type: image/jpeg");
header("Content-Length: " . filesize($file));
readfile($file); <?php include "image.php";
$img = $file;?> <img src="<?php echo $img; ?>" alt="" width="500" height="300"> <?php
$file = "test/image.jpg";
?> [edited by: not2easy at 11:35 am (utc) on Aug 11, 2020]
[edit reason] See Charter [webmasterworld.com] [/edit]