redirect

Simple PHP browser detection

A PHP redirect was needed to detect non-PC browsers such as iPads, iPhones, and other devices.  What digital point has to say: http://forums.digitalpoint.com/showthread.php?t=175713 An Else Statement can work… http://www.php.net/manual/en/control-structures.else.php <?php if ($a > $b) { echo ”a is greater than b”; } else { echo ”a is NOT greater than b”; } ?> For browser detection: <?php if (strstr($_SERVER['HTTP_USER_AGENT'],’iPad’) || strstr($_SERVER['HTTP_USER_AGENT'],’iPhone’)) { header(‘Location: http://headquarternissan.com/cms/?ui=mobile’);} else {header( ‘Location: http://www.headquarternissan.com/cms’ );} ?> <?php if [...]

Tags: ,

Posted in: Programming | 3 Comments »

Meta Refresh – how to redirect

Insert the following code in the : ‘

Tags: ,

Posted in: Internet | 163 Comments »