# Export text from text file

**URL:** <https://forum.kirupa.com/t/export-text-from-text-file/63169>\
**Category:** programming\
**Created:** [September 3, 2004, 1:44pm UTC](https://forum.kirupa.com/t/export-text-from-text-file/63169 "2004-09-03T13:44:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Alex1](https://forum.kirupa.com/u/Alex1)\
**Post date:** [September 3, 2004, 1:44pm UTC](https://forum.kirupa.com/t/export-text-from-text-file/63169/1 "2004-09-03T13:44:01Z")

</div>

Hello,

Is there a way to export text from a normal .txt file and put it into a webpage using PHP. So you only have to update the text file not the actual webpage.

If this is possible, please can you give me some information about how I might do this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 3, 2004, 1:46pm UTC](https://forum.kirupa.com/t/export-text-from-text-file/63169/2 "2004-09-03T13:46:14Z")

</div>

Of crouse you can…

You want to use fopen() to open the file, fread() to read the data and fclose() to close the file… search for tutorials… there are loads
