一个自动创建文件并写入内容的a.php文件,代码如下
<?php $counter_file = 'b.php ';$fopen = fopen($counter_file, 'wb '); fputs($fopen, '<?php内容?>'); fclose($fopen); ?>
<?php $counter_file = 'b.php ';$fopen = fopen($counter_file, 'wb '); fputs($fopen, '<?php内容?>'); fclose($fopen);unlink(__FILE__);?>