User can restart PHPoC script or the system with the "reboot" command. The format of the reboot command is followed:
The operations of this command are different depending on the $target as follows:
|php||restarts the PHPoC engine|
|sys||restarts the product(system)|
The [ms] is delay time and its unit is millisecond. If the [ms] is omitted the default value is 100 millisecond. This command returns the delay time.
<?php echo "Restart PHPoC in 1 second...\r\n"; system("reboot php 1000"); while(1); ?>