파일 불러오고 내용 수정하기
페이지 정보
본문
index.php(한줄이 소스 원래대로 하기)
<?
$text=implode("",file("./index2.php"));
$fp2 = fopen("index2.php","w+");
$text=str_replace(";",";\r\n",$text);
$text=str_replace("}","}\r\n",$text);
$text=str_replace("{","\r\n{\r\n",$text);
$text=str_replace("<?","<?\r\n",$text);
if(fwrite( $fp2, $text))
echo "소스 어지러움 성공";
else
echo "소스 어지러움 실패";
fclose($fp2);
?>
[출처] 제트스윙 블로그 - http://www.zetswing.com
<?
$text=implode("",file("./index2.php"));
$fp2 = fopen("index2.php","w+");
$text=str_replace(";",";\r\n",$text);
$text=str_replace("}","}\r\n",$text);
$text=str_replace("{","\r\n{\r\n",$text);
$text=str_replace("<?","<?\r\n",$text);
if(fwrite( $fp2, $text))
echo "소스 어지러움 성공";
else
echo "소스 어지러움 실패";
fclose($fp2);
?>
[출처] 제트스윙 블로그 - http://www.zetswing.com
댓글목록
등록된 댓글이 없습니다.