<?php
error_reporting(E_ALL);
define("EOL", php_sapi_name() === "cli" ? PHP_EOL : "<br>");
define("TRAVEL_REQ_NAME", "__time_travel__");
$travelFunc = require __DIR__ . "/timeTravel.php";
$travel = $travelFunc(TRAVEL_REQ_NAME);
echo "server time: " . date("Y-m-d H:i:s") . EOL;
if($travel()) {
echo "travel to tim: " . date("Y-m-d H:i:s") . EOL;
} else {
echo "travel fail" . EOL;
}
goghcrow/timeTravel
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
测试用php时间穿越~
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published