Results 1 to 4 of 4

Thread: writing to files

  1. #1
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default writing to files

    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
    http://www.insanecombat.com << bored? check out ma game

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    (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().
    another question is (i forget) how do i get the cursor to start at the front of the file
    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Lol

  4. #4
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    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 )
    http://www.insanecombat.com << bored? check out ma game

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •