Is there a better way to write this if statement?
Option1:
if (isset($_GET['item']) || isset($_POST['item'])){
$path = 'uploads/file/'.$filename;
}else{
$path = 'uploads/'.$filename;
}
Option2:
if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){
$path = 'uploads/file/'.$filename;
}else{
$path = 'uploads/'.$filename;
}