php 显示网页的源代码
显示网页的源代码 [代码片段(7行)]
<?php // display source code $lines = file('http://google.com/'); foreach ($lines as $line_num => $line) { // loop thru each line and prepend line numbers echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; }
精彩图集
精彩文章