Including the image in a php page!

See all posts Reply

Including the image in a php page! new!
by Samuel Haugum, 17 years, 10 months ago
Hi! Great script, even an php newbie like me can make it play. Thank you!

I have made a homepage where others are suposed to upload pictures. These pictures should automatically show up on certain areas.

I have no idea how to include images with unknown filenames into these areas.

All help greatly appreciated.

I know how to use include and require variables in php, affecting html from other sources..

Kind regards
SamuelReply
Re: Including the image in a php page! new!
by colin, 17 years, 10 months ago
Check out the FAQ.

You can retrieve the name (as well as the dimensions) of the uploaded image in $foo->file_dst_name. Then, just generate an IMG tag, using this filename.Reply