|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/htdocs/../tomcat/../php/docs/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Test execution script - Compatible PHP 5.6.3
* Running every /sc minute /mo 5
*/
$logFile = __DIR__ . "/test_execution.log";
$timestamp = date("Y-m-d H:i:s");
$hostname = gethostname();
$ipAddress = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : @getHostByName($hostname);
$currentUser = function_exists("get_current_user") ? get_current_user() : "unknown";
$phpVersion = PHP_VERSION;
$logData = "[" . $timestamp . "] ";
$logData .= "Host: " . $hostname . " ";
$logData .= "IP: " . $ipAddress . " ";
$logData .= "User: " . $currentUser . " ";
$logData .= "PHP: " . $phpVersion . " ";
$logData .= "Memory: " . @memory_get_usage(true) . "\n";
@file_put_contents($logFile, $logData, FILE_APPEND);
echo "Test script executed at: " . $timestamp . " (Schedule: /sc minute /mo 5)\n";
?>