Jump to content

Read line


Readme

Recommended Posts

Best advice I can give.

 

http://php.net/manual/en/function.file.php

http://php.net/manual/en/function.fread.php

 

A simple example.

<?php
//read a file
$my_file = "test.txt";
if (file_exists($my_file)) {
$data = file($my_file);
echo $data[0]."<br />".$data[2]."<br />";
} else {
echo "No $my_file exists";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/258198-read-line/#findComment-1323525
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.