Forum Moderators: open

Message Too Old, No Replies

Images coming from PHP, how can I display?

         

alwaysinit

1:46 pm on Nov 26, 2006 (gmt 0)

10+ Year Member



Hi, I'm trying to display dynamic JPG, GIF, PNG's from my database using php. Sorta at a loss. I checked the Flash "HELP" for a while but came up with nothing that worked. Also googled everything bout "images, Flash, PHP" and "Dynamically displaying images in flash. Came up with nothing. Maybe I'm a bad googler but.....
anyhow below is my simple PHP that shows an image when looked at in browser. I've tried several ways to display it in flash. It works nice if I just place the server location of my actual pic in a "loader Component", But I need it PHP-Dynamic.
~thanks for any help


<?php
session_start();
header("Cache-control: private");
if (!$_SESSION['email']) {
echo "You aren't logged in.";
exit();
}
?>
<html>
<body>
<img src="user_files/thumbnail1/<?php echo $_SESSION['thumb_1'];?>"/>
</body>
</html>

Maybe someone could show me a function in flash that will display this pic, thanks

alwaysinit

1:18 pm on Nov 29, 2006 (gmt 0)

10+ Year Member



I got it working, thanks