<?php

// Use fopen function to open a file
$file = fopen("test.txt", "r");

// Read the file line by line until the end
while (!feof($file)) {
$value = fgets($file);
print  $value . "<br>";
}

// Close the file that no longer in use
fclose($file);

?>

創作者介紹
創作者 隨手筆記 的頭像
芭樂養樂多

隨手筆記

芭樂養樂多 發表在 痞客邦 留言(0) 人氣( 1 )