first commit
This commit is contained in:
14
vegas/test.php
Normal file
14
vegas/test.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
echo $_SERVER['SERVER_NAME'] .'<br>';
|
||||
echo $_SERVER['SCRIPT_NAME'] .'<br>';
|
||||
echo $_SERVER['REQUEST_URI'] .'<br>';
|
||||
echo $_SERVER['PHP_SELF'] .'<br>';
|
||||
|
||||
$host = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
|
||||
echo "A: " . $host;
|
||||
|
||||
if ($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") $host = "blog";
|
||||
else $host = "wordpress";
|
||||
echo "B: " . $host;
|
||||
?>
|
||||
Reference in New Issue
Block a user