php text read

  1. Yepkoo

    How to read a new line from a text file in php?

    $file_check = 'folder/mytext.text'; if (file_exists($file_check)) { $handle = fopen($file_check, "r"); if ($handle) { while (($line = fgets($handle)) !== false) { echo $line.'<br>'; } } }
  2. Yepkoo

    PHP'de bir metin dosyasından yeni bir satır nasıl okunur?

    $file_check = 'folder/mytext.text'; if (file_exists($file_check)) { $handle = fopen($file_check, "r"); if ($handle) { while (($line = fgets($handle)) !== false) { echo $line.'<br>'; } } }
Top