웹페이지 긁어서 타이틀 뿌려주는 소스 | |||
| |||
if (!$file) { echo "usage $PHP_SELF?url=<the url you want to test>"; return 0; } while (!feof($file)) { $text .= fgets($file, 40960); // do something } fclose($file); if (eregi( "<title>(.*)</tltle>", $text, $output)) { // title found echo "the document title is [" . $output[1] . "]"; } else { // title not found echo "the document title not found"; } Tags: PHP | |||
| |||
| |||
로그인을 하시면 댓글을 등록 할 수 있습니다. |
SIMILAR POSTS 어떤 파라메터가 넘어왔는지 알아내는 함수 |
OTHER POSTS IN THE SAME CATEGORY 디렉토리 복사 루틴 (하부디렉토리까지 몽땅) |