Web Programming Language/PHP
fopen, fput, fclose, fgets
<?php $flep = fopen("test.txt","w+"); if(!$flep) die("파일을 열 수 없습니다"); fputs($flep,"security"); fclose($flep); $flep = fopen("cc0928.txt","r"); while($l=fgets($flep,1024)) print $l."
"; ?>
'Web Programming Language > PHP' 카테고리의 다른 글
PHP 기본상식 (0) | 2018.08.21 |
---|---|
jquery[basic] (0) | 2018.08.21 |
class (0) | 2018.08.21 |
call by value, reference (0) | 2018.08.21 |
배열 (0) | 2018.08.21 |
댓글