View Full Version : writing to files
Demonicman
03-07-2007, 12:53 PM
i was able to write an easy chat using php (you said wasnt possible :P) and how do i make it that when it writes to a file it doesnt allow < or >
i used an i frame :)
another question is (i forget) how do i get the cursor to start at the front of the file
(you said wasnt possible :P)Who did?
and how do i make it that when it writes to a file it doesnt allow < or >Convert the string before writing it with htmlentities (http://www.php.net/htmlentities)().
another question is (i forget) how do i get the cursor to start at the front of the filefseek (http://www.php.net/fseek)().
<?php $ganster = "Ganster";
if ($ganster=="Ganster"){
echo "You arent a real ganster :P Gansters dont go on computers";} ?>Damn sho' we do, biznitch. Yo.
pcbrainbuster
03-07-2007, 06:29 PM
Lol :)
Demonicman
03-07-2007, 08:35 PM
i forget who said you cant have chat with php... but thanks for the other 2 things twey
(real gangsters dont go on computers fo sho :D)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.