Script 1.5 Predefined Variables

Output

You are running the file:
/home3/ashliet/public_html/percolate/index.php.

You are viewing this page using:
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

This server is running:
Apache.

Source
<?php	
#	Script	1.5	- predefined.php
//	Create a shorthand version of the variable names:
$file = $_SERVER['SCRIPT_FILENAME'];
$user = $_SERVER['HTTP_USER_AGENT'];
$server = $_SERVER['SERVER_SOFTWARE'];

 //	Print	the	name	of	this	script:
echo "<p>You are running the file:<br /><b>$file</b>.</p>\n";

 //	Print	the	user's	information:
echo "<p>You are viewing this page using:<br /><b>$user</b></p>\n";

 //	Print	the	server's	information:
echo "<p>This server is running: <br /><b>$server</b>.</p>\n";
?>