LINUXE下执行php 定时任务
linux
test.php
<?php $fn='/home/root.adminssh/boz/logs'; $data=rand(1,9999); $fp=fopen($fn,'wb'); fwrite($fp,$data); fclose(); ?>
linux下执行命令/usr/bin/php -f ./test.php
☜☞梦想总是要有的,万一实现了呢☜☞
linux
test.php
<?php $fn='/home/root.adminssh/boz/logs'; $data=rand(1,9999); $fp=fopen($fn,'wb'); fwrite($fp,$data); fclose(); ?>
linux下执行命令/usr/bin/php -f ./test.php