Create new folder php/ and put php files there.

* Also put symlinks for backwards compatibility.
This commit is contained in:
Mikaela Suomalainen 2014-06-23 17:30:48 +03:00
parent 8e3950bb86
commit f78069c4f0
4 changed files with 24 additions and 22 deletions

9
IP.php
View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: text/plain; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo "$IP";
?>

1
IP.php Symbolic link
View File

@ -0,0 +1 @@
php/IP.php

View File

@ -1,13 +0,0 @@
<?php
header("Content-Type: text/html; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo '<!DOCTYPE html>';
echo '<head>';
echo '<meta charset="UTF-8" />';
echo "<title>$IP</title>";
echo '</head>';
echo '</html>';
?>

1
IPTITLE.php Symbolic link
View File

@ -0,0 +1 @@
php/IPTITLE.php

9
php/IP.php Executable file
View File

@ -0,0 +1,9 @@
<?php
header("Content-Type: text/plain; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo "$IP";
?>

13
php/IPTITLE.php Executable file
View File

@ -0,0 +1,13 @@
<?php
header("Content-Type: text/html; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo '<!DOCTYPE html>';
echo '<head>';
echo '<meta charset="UTF-8" />';
echo "<title>$IP</title>";
echo '</head>';
echo '</html>';
?>