Hallo Cybaer
Kurze Frage zu deinem Script:
Ich rufe dein Script aus einer htm-Datei wie folgt auf:
<?php
define('MOBILE_MAX_WIDTH',640); // Own values for defining whether client is "mobile" or not (only relevant
define('MOBILE_MAX_HEIGHT',480); // at iPhone and iPod or if client is sending its display resolution)
if(!isset($_SERVER['HTTP_USER_AGENT'])) { $_SERVER['HTTP_USER_AGENT']=''; } // Initializing UA variable
require('agent_constants.php'); // Including this script
defAgentConstants(); // Calling this script
if(MOBILE_AGENT) { // Using constant which is set by this script
header("Location: http://www.beispiel.ch");
} else {
}
?>
Sollte doch nun so funktionieren, dass wenn ich die Seite mit meinem iPhone öffne die Seite www.beispiel.ch geöffnet wird?
Besten Dank für die Hilfe