Hi all,
Is there a shorter way to do this:
if (file_exists("/home/www/temp/pic.jpg")) {
exit;
}
elseif (file_exists("/home/www/temp/pic.gif")) {
exit;
}
do what ever
I tried:
if (file_exists("/home/www/temp/pic.jpg") || ("/home/www/temp/pic.gif")) {
exit;
}
but it didn't work.
I'm fairly new to php so if there's an obvious answer I'd appreciate it if you could point me in the right direction.
Thanks,
JeNNiDeS