How to read a txt file from HTML Using a php or JS code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to read a txt file from HTML Using a php or JS code

I have an html Page with a text área and I need to read a txt file located on a other path. That txt is being changing by a other script. That why I need to read the txt with php or js and return its contents in text área...

22nd Aug 2020, 3:46 PM
Jesus Banegas
Jesus Banegas - avatar
1 Answer
+ 1
With fileReader in javascript you can load files from local devices to display in the page.See my profile with read local file code bits.
22nd Aug 2020, 9:02 PM
HBhZ_C
HBhZ_C - avatar