$argcphp
传入的参数个数(包括文件)linux
$argv数组
传入的参数的数组(包括文件)缓存
实时查看文件在linux上使用 tail -f 命令ide
在php 中要学会使用fseek()和flush()巧妙的配合来实现实时机制函数
######################spa
- //控制页面缓存的代码
- header("Cache-Control: no-cache,must-revalidate");
- header("Expires:Mon,26 Jul 1997 05:00::00 GMT");
#########################xml
stream_copy_to_stream这个函数rem
- <?php
- $src = fopen('http://www.example.com', 'r');
- $dest1 = fopen('first1k.txt', 'w');
- $dest2 = fopen('remainder.txt', 'w');
- echo stream_copy_to_stream($src, $dest1, 1024) . " bytes copied to first1k.txt\n";
- echo stream_copy_to_stream($src, $dest2) . " bytes copied to remainder.txt\n";
- ?>