linux下直接执行PHP脚本

#!/opt/lampp/bin/php
<?php
echo "test\n"; 

./test.php

[root@bogon wwwroot]# ./test.php
test
[root@bogon wwwroot]#

 

posted @ 2016-02-17 18:06  eastdoor  阅读(325)  评论(0编辑  收藏  举报