Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
|
Hmm, I didn't know ID was working as well.
Then that is not your problem.
I see now though, that you are doing something rather weird.
PHP Code:
$fh2 = fopen("inc/rant.inc","r") or die ("Rant File Not Found"); while (!feof($fh2)) { $rantText = file_get_contents($fh2); } fclose($fh);
What you're doing is opening a file handler to a file.
Then while the pointer hasn't reached the end of the file on that handler, you try to read the whole file into a string by supplying file_get_contents with a file handler, but you should supply the filename.
This bit could just be replaced by:
PHP Code:
if(file_exists("inc/rant.inc")){ $rantText = file_get_contents("inc/rant.inc"); }else{ echo "File not found!"; }
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
|