분류
php
웹 페이지의 소스 코드 표시
본문
$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";
}
- 이전글Round 3D의 멋진 데모... 18.06.13
- 다음글gzcompress()를 사용하여 데이터를 압축 18.06.10