...

View Full Version : Image through proxy



jumpman23
02-29-2012, 02:51 PM
Hello I have a member page and basically my question is I have a sql database set up with table name 'tz_pictures' with a row 'avatar' which the user then uploads from a form, and the profile pic location is saved to the avatar field. my question is right now the way im calling the picture to be displayed is:

echo "<img src='http://www.site.com/".$row['avatar']."'>";

how does one do a proxy so it functions like "www.website.com/file.php?id=?id"

thank you for the help! you guys rock

mlseim
02-29-2012, 03:23 PM
Your script called "file.php" can generate the image on the fly.

You have two choices though ...

Using <img src .... > or include("script")

Img src will use PHP GD to generate the image with the proper mime type.

Include will include the output of the PHP script, which already contains the <img src> tag.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum