here's basically what i'd like to do, plain and simple:
how would i go about recognizing the file extensions? any pointers?
Code:
$url = "http://somerandomlocation.com/blahblah/file.ext";
if ([b]$url ends with ".jpg"[/b]) {
do function a;
{
elseif ([b]$url ends with ".gif"[/b]) {
do function b;
}
else {
do function c;
}
Last edited: