Simple php code for reading lines
Using the below PHP code you can easily read a txt file
< ?php
$file = fopen("mistonline.in.txt", "r") or exit("Unable to open file!");
//Output of the text file
while(!feof($file))
{
//<br> is used to break b/w lines
echo fgets($file). "<br />";
}
fclose($file);
?>
Incoming search terms:
- comment utiliser phptoexcel (1)
- how to read file for content using php (1)
- how to read pdf file content in php (1)
- how to remove file using php (1)
- read file php code (1)
- read file technology code (1)
- reading scripts tips (1)
- reading uses (1)
- unable to open file using readfile in php code (1)
You will also be interested in ,
- Read text file reverse using php
- FPDF error: Alpha channel not supported error message
- Avoid direct access to a file in php enhanced version
- How to split a word or sentence delimited with slashes, commas or hyphens
- Get textbox value from dropdown using ajax and php
- Speed up wordpress using .htaccess part 1
- Set xampp:- Apache Mysql Filezilla Mercury Tomcat as a windows service and get xampp to start automatically on boot up
- Simple Code To Set And Retrieve Cookie Using PHP
- Arrays In PHP
- How to get the IP address of the visitor with PHP?

nice
wow, but how about if i want to read the file and add some record without any loss of data,..? thanks in advance
Jeremy thanks again for your response
Follow this link, it will be helpful and will clear your doubt i guess.