HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default A way of doing this... +REP

    hiii..
    right... i have a web layout.
    part of it is "latest news"...
    it's a html file, and I basically just want to be able to go to a "site panel" like /admin.html or w.e and then in the input box type the latest story, allowing html and then it adds to the homepage, not like cutenews or anything, I just want something that basic. so it only has to store one story at a time.

    any ideas?

    been looking at "php write" function, I used that before.

    any idea?

    thanks guys.

    drink up this bottle of yeah
    and P A I N T your body on me


  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Going from the post your php skills may need quite a bit of work, but simplest way to do this is just have a form point to a php script that'll read the post header containing the data and dump it in a static file
    file_put_contents("filename.txt",$_POST['newdata']);

    then read it backout with
    file_get_contents("filename.txt"); and echo it where you want it placed in your page.

    Check the php manual for each, both functions are pretty simple ways of reading and writing a file. Make sure you chmod whatever file u are reading/writing to as 777 though

Posting Permissions

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