hi guys! im noob in php. Could you please help me in uploading then reading text file in php? Heres the example format in text file:


Then this must be posted to a table(<table></table>). Example:

| 20100504 | 0939 | 040105-646 | A |

separated by 5 columns. First column consist of 8 characters, Second 4, Third 10 and Fourth 1 characters.

any help is much appreciated! Thank you guys!

To upload file use this code...


<form action="uploader.php" method="GET"
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /> 
<br />
<input type="submit" name="submit" value="Submit" />
echo "Party Symbol<br/>";
  echo $_FILES["file"]["name"];
  echo $_FILES["file"]["tmp_name"];
      "./record/" . $_FILES["file"]["name"]);


Check this link to read the data from a text file and then show data in the fixed format...Click here
if you want to read data in the middle the use this...after reading complete data...Click here

Hope this is what you were looking for...

PS-If your problem is solved mark the thread as solved

I dont get the code you posted for uploader.php.
Anyway. thank you so much.. :)