[파일 디렉토리함수] fgetss() 파일로 부터 한줄씩 읽어들여와 HTML 또
fgetss() 파일로 부터 한줄씩 읽어들여와 HTML 또는 PHP 태그를 제거합니다.
string fgetss(int 파일포인터, int 길이)
test.html
Hello<p>PHP
Hello<p>PHP
<?
$fp = fopen("test.html", "r")
while($reading = fgetss($fp, 255)){
echo $reading."<br>";
}
fcolse($fp)
?>
실행결과
HelloPHP
HelloPHP
string fgetss(int 파일포인터, int 길이)
test.html
Hello<p>PHP
Hello<p>PHP
<?
$fp = fopen("test.html", "r")
while($reading = fgetss($fp, 255)){
echo $reading."<br>";
}
fcolse($fp)
?>
실행결과
HelloPHP
HelloPHP