IF THE BACKGROUND COLOR OF THIS PAGE IS #F0F / PURPLE YOU ARE USING A MOBILE EQUIPMENT

IF THE BACKGROUND COLOR OF THIS PAGE IS #000 / BLACK YOU ARE USING A STATIC ( NOT MOBILE ) EQUIPMENT

count(Array) how many elements do I have in the Array array = 48

HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

HTTP_REFERER = https://santiago.bz/php/server_vars/mobile_browser.php?myname=SANTI
REMOTE_ADDR = 18.218.94.236
REQUEST_URI = /php/server_vars/mobile_browser.php?myname=SANTI
Thank you for visiting my site. Now go back to where you were before :::: GO BACK
REFRESH HERE AND DISPLAY MY NAME CLICK
SANTI is your name



USE THIS TO VERIFY WHICH BROWSER OR OPERATING SYSTEM IS BEING USED

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<style type="text/css">

body {
<?php
/// this is happening inside the CSS component

$mystring = $_SERVER['HTTP_USER_AGENT'];

$findme = 'Mobile';
$pos = strpos($mystring, $findme);

if ($pos == false) {

echo("background-color: #000; color: #F0F"); // NOT USING Mobile
       // <link rel='stylesheet' href='nav/pc.css' type='text/css' /> // another possibility BUT w/o <style>

} else {

echo("background-color: #F0F; color: #000"); // YOU ARE USING Mobile
       // <link rel='stylesheet' href='nav/mob.css' type='text/css' /> // another possibility BUT w/o <style>

}

?>

}

</style>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

<?php

$myname = $_GET['myname'];

echo( "HTTP_USER_AGENT = ". $_SERVER['HTTP_USER_AGENT'] . " <br />" );
echo( "HTTP_REFERER = " . $_SERVER['HTTP_REFERER'] . " <br />" );
echo( "REMOTE_ADDR = " . $_SERVER['REMOTE_ADDR'] . " <br /> " );

echo( "REQUEST_URI = " . $_SERVER['REQUEST_URI'] . " <br /> " );

echo ( "Thank you for visiting my site. Now go back to where you were before :::: ");

echo( "<a href='" . $_SERVER['HTTP_REFERER'] . "'> GO BACK </a><br />");

echo ( " REFRESH HERE AND DISPLAY MY NAME <a href='" . $_SERVER['PHP_SELF'] . "?myname=SANTI'>CLICK</a><br /> " );

if ( $myname != "" ) {

echo ($myname . " is your name <br />" );

} else {

echo (" HERE GOES YOUR NAME <br />") ; }

?>