PHP Help please.
Posted: Sun Dec 16, 2007 12:42 pm
Ok, what I'm trying to do is this.
on Tlejftp.com, I want to only display certain codes if it's a certain file type.
First, it will always show the direct link, but if it's a Image type, (jpg, png, gif) display the BBcode for the image, and the bbcode for the Thumbnail, (which auto generates from one of my scripts.) If it was a video/music, I want to embed it, and show embed code. I know how to show all the stuff, I just can't figure out how to only show certain things, for certain file types.
It would be something like
if $filetype == "jpg"
{
echo (all my codes that I want to display for jpg..)
}
I don't know how to get the file type, but I have tried several ways and none seem to work.
Thanks if you can help!
on Tlejftp.com, I want to only display certain codes if it's a certain file type.
First, it will always show the direct link, but if it's a Image type, (jpg, png, gif) display the BBcode for the image, and the bbcode for the Thumbnail, (which auto generates from one of my scripts.) If it was a video/music, I want to embed it, and show embed code. I know how to show all the stuff, I just can't figure out how to only show certain things, for certain file types.
It would be something like
if $filetype == "jpg"
{
echo (all my codes that I want to display for jpg..)
}
I don't know how to get the file type, but I have tried several ways and none seem to work.
Thanks if you can help!