Click here to Skip to main content
15,885,997 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have multiple values in a .txt file that are all in a different line and i tried to echo the value in a php like this:
PHP
$myfile = fopen("pws.txt", "r") or die("Unable to open file!");
echo fread($myfile, filesize("pws.txt"));
fclose ($myfile);
,but it doesn't get showed underneath eachother?

What I have tried:

I've tried to use the <br>tag but it didn't work.
Posted
Updated 16-May-21 10:31am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900