# Upload my text

**URL:** https://forum.kirupa.com/t/upload-my-text/55414
**Category:** Uncategorized
**Created:** [June 23, 2004, 6:37pm UTC](https://forum.kirupa.com/t/upload-my-text/55414 "2004-06-23T18:37:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yhack](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yhack](https://forum.kirupa.com/u/yhack)
#### Post date: [June 23, 2004, 6:37pm UTC](https://forum.kirupa.com/t/upload-my-text/55414/1 "2004-06-23T18:37:15Z")

</div>

can i have a html page with a box then in like a text file i write what i want it to say the box

the box would be blank then it loads up the text and i can edit the text file as i want without goinin and changin the html file

---

<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: [July 8, 2004, 3:53am UTC](https://forum.kirupa.com/t/upload-my-text/55414/2 "2004-07-08T03:53:39Z")

</div>

why not something like this

```php

   #make a php file called frame.php
 #than use the iframe code used above 
 #replace src="textfile.text"
  #with
  # src="frame.php" with the following code
   
   $file ="sometext.txt";
   $fh = fopen($file,'r') or die ("couldnt open file to read");
   $file_size =filesize($file);
   $file_content = fread($fh,$file_size);
   fclose ($fh);
   echo '<body bgcolor="red"><font size="2">
   echo '<pre>';
   echo $file_content;
   echo '</pre>';
   

```
