<?php //http://jayctech.com/pics.php if(isset($_GET['user_id'])) { //Queries to get user name, picture from mysql database echo "$picture_location"; }
<?php $pic_location = file_get_contents('http://jayctech.com/pics.php?id=2'); ?> <html> <body> <img src="<?=$pic_location?>" /> </body> </html>