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