I have got a website with a few friends from school(year8). We have got a website up. I want it so it looks for a textfile and reads and writes it into a textbox. It does do this. The only problem is that it doesn't read the whole file. It may read like 3 words out of 7 so its not that gud.
This is my code[code=php]
<div id="text2" style="position :absolute; overflow:hidden ; left:351px; top:192px; width:475px; height:671px; z-index:2"><div class="wpmd">
<div><font class="ws12" face="Franklin Gothic Heavy">
<?php
$myFile = "HomeNews.t xt";
$passw = fopen($myFile, "r");
$pass = fread($passw, 5);
while ( $line = fgets($passw, 1000) ) {
echo($line);
}[/code]
I am using notepad on windows xp. And im using my friends server which he pays for and i think they use appach.
Hopefully someone can help.
Thanks alot
Mague
This is my code[code=php]
<div id="text2" style="position :absolute; overflow:hidden ; left:351px; top:192px; width:475px; height:671px; z-index:2"><div class="wpmd">
<div><font class="ws12" face="Franklin Gothic Heavy">
<?php
$myFile = "HomeNews.t xt";
$passw = fopen($myFile, "r");
$pass = fread($passw, 5);
while ( $line = fgets($passw, 1000) ) {
echo($line);
}[/code]
I am using notepad on windows xp. And im using my friends server which he pays for and i think they use appach.
Hopefully someone can help.
Thanks alot
Mague
Comment