Documentos de Académico
Documentos de Profesional
Documentos de Cultura
<?php
print $_SERVER["HTTP_USER_AGENT"];
?>
<?php
print $_SERVER["HTTP_ACCEPT_LANGUAGE"];
?>
$_SERVER["REMOTE_ADDR"]
<?php
print $_SERVER["REMOTE_ADDR"];
?>
$_SERVER["DOCUMENT_ROOT"]
<?php
print $_SERVER["DOCUMENT_ROOT"];
?>
var_dump($_SERVER);
<?php
var_dump($_SERVER);
?>
phpversion();
<?php
print phpversion();
?>
php_uname();
<?php
if (strtoupper(substr(PHP_OS, 0, 6)) == 'WINDOWS') {
echo 'Este un servidor usando Windows!';
}
if (strtoupper(substr(PHP_OS, 0, 5)) == 'LINUX') {
echo 'Este un servidor usando Linux!';
}
?>
phpinfo()
<?php
phpinfo();
?>
Obtener la fecha actual del servidor
<?php
print date("Y/m/d");
?>
Más opciones:
https://www.php.net/manual/es/function.date.php