I am trying to call a php file that opens only if someone clicks a link from a non android or iOS device. Before I only had an error message.
if(isset($_GET['appId'])){
$products = getAppDownloadLinks(mysql_string($_GET['appId']));
//do something with this information
if( $iPod || $iPhone || $iPad){
header('Location: '.$products['ios']);
exit;
}
else if($Android){
header('Location: '.$products['android']);
exit;
}
else{
//we're not a mobile device.
$html = file_get_contents('mobileSplash.php');
}
}
Is this an appropriate approach for my final else statement, how do I call that php file to display the splash error page?