Home > Backend Development > PHP Tutorial > PHP 能更改系统时间吗,windows系统

PHP 能更改系统时间吗,windows系统

WBOY
Release: 2016-06-23 14:27:43
Original
1282 people have browsed it

PHP 能更改系统时间吗,windows系统

  如

time.php

 每执行一次这个PHP文件的url

  windows 系统时间,就增加1分钟,windows时间=windows时间+60秒

 类似这样,


有没有人知道代码?


回复讨论(解决方案)


$time_60 = time()+60;$time = date('H:i:s', $time_60);system("time $time");
Copy after login
Copy after login
Copy after login

$time_60 = time()+60;$time = date('H:i:s', $time_60);system("time $time");
Copy after login
Copy after login
Copy after login
会不会闪出cmd界面?



$time_60 = time()+60;$time = date('H:i:s', $time_60);system("time $time");
Copy after login
Copy after login
Copy after login
会不会闪出cmd界面?
不会!

date_default_timezone_set('Asia/Shanghai');$time_60 = time()+60;$time = date('H:i:s', $time_60);system("time $time");echo $time;
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template