I have 2 webservers.
Webserver #1 has a file index.php, and I would like to know the last date modified property of the file. Using this code, it is quite simple:
Works locally, BUT
From Webserver #2, I need to return the last date modified property of the index.php file held on Webserver #1. Is it possible?
Webserver #1 has a file index.php, and I would like to know the last date modified property of the file. Using this code, it is quite simple:
Code:
<?
$filename = 'index.php';
if (file_exists($filename)) {
$a = date ("F d Y", filemtime($filename));
echo $a;
}
?>
Works locally, BUT
From Webserver #2, I need to return the last date modified property of the index.php file held on Webserver #1. Is it possible?