I'm creating my Own Tagboard and I want the information stored to Displayed with the newest on top instead of just recording the results going downways.
My current Code is:
$handle = fopen($file,"r");
$string = fread($handle,filesize($file));
$handle = fopen($file,"w");
$string = $string . "<A href=$url target=_blank>$name</a>: $message<br>";
Can I simply Modify this to get it to Store Stuff at the top of the file not the bottom?
$string = "<A href=$url target=_blank>$name</a>: $message<br>" . $string;
your original code was concatonating $string before the text to add rather than after.
You always seem to help me =)
No problem, glad to help.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)