Hello, I was making a game a wile ago and it came to a hold. i am now trying to finish the website for it but this part is an admin part. What i have done is made my game character files save into the same files as the website (im using xampp for the min) they are .txt files but in a few monthes or so i might possibly convert it to mysql but thats not happening at the min. What i want to do is make a edit.php or something like that and make it so i can type in the name (E.G. God ownz) in a text area then put in the admin password (that can be stored in mysql) and press load, then it loads the .txt file into a large text area that is editable. if this is possible or if this is already been made then please can you give me an idea or a link please.
The main part is loading the file then editing.

THE .TXT FILES ARE STORED IN THE WEBSITE FILES so it can be loaded through the web (E.G. http://random.lol/char/god ownz.txt) so please if you have any idea please post

Thanks

note: please dont say convert to mysql because when i stabilize my server more i will.

    not sure what part your asking for help with, for the file editing

    use file_get_contents() to put the file in a string then you can just echo it in a textarea. After its saved, use file_write_contents() to recreate the file.

      hey dagon, thats the part i need and thank you, i will be playing around and get something together and i will post the results

      Thanks

        Write a Reply...