summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/resources/file-last-modified.php
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/resources/file-last-modified.php')
-rw-r--r--LayoutTests/http/tests/resources/file-last-modified.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/resources/file-last-modified.php b/LayoutTests/http/tests/resources/file-last-modified.php
new file mode 100644
index 0000000..efcf950
--- /dev/null
+++ b/LayoutTests/http/tests/resources/file-last-modified.php
@@ -0,0 +1,7 @@
+<?php
+date_default_timezone_set('UTC');
+$filePath = $_GET['path'];
+if (file_exists($filePath)) {
+ echo date("U", filemtime($filePath));
+}
+?>