Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - [PHP] Need a quick little script for my brother | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Kyoufu Kawa I'm not bad. I'm just drawn that way. Level: 70 Posts: 2115/2481 EXP: 3008456 For next: 7355 Since: 03-19-04 From: Catgirl Central Since last post: 14 hours Last activity: 13 hours |
| ||
Just some PHP script that opens a specific file, shows it in a text field and saves the changes back into that file. Fack password protection, that's covered. | |||
Darth Coby Vire Dacht je nou echt dat het over was? Dacht je nou echt dat ik gebroken was? Nee toch? Nou kijk eens goed op uit je ogen gast. zonder clic heb je geen kloten tjap... bitch Level: 55 Posts: 1299/1371 EXP: 1240774 For next: 73415 Since: 03-15-04 From: Belgium Since last post: 2 days Last activity: 9 hours |
| ||
Well that's easy, I wonder why no one answered this yet. [code] function readFile() { $filename = "somefile.txt"; $file = fopen($filename, "r+"); // Open file for reading and writing, pointer starting at beginning of file $contents = fread($file, filesize($filename)); // Get $filename bytes from $file fclose($file); } function writeFile() { $filename = "somefile.txt"; $file=fopen($filename, "r+"); $content = "Bla bla bla"; fputs($file, $text); fclose($file); } ?>[/code] That's all you need, if you've got password protection covered I trust you'll be able to use these two simple functions as well. Edit: PS This is off the top of my head, it should work however, let me know if you have any more questions. (edited by Darth Coby on 08-30-05 05:07 PM) |
|||
Kyoufu Kawa I'm not bad. I'm just drawn that way. Level: 70 Posts: 2201/2481 EXP: 3008456 For next: 7355 Since: 03-19-04 From: Catgirl Central Since last post: 14 hours Last activity: 13 hours |
| ||
It's not quite what I asked for, but it'll suffice. | |||
Darth Coby Vire Dacht je nou echt dat het over was? Dacht je nou echt dat ik gebroken was? Nee toch? Nou kijk eens goed op uit je ogen gast. zonder clic heb je geen kloten tjap... bitch Level: 55 Posts: 1300/1371 EXP: 1240774 For next: 73415 Since: 03-15-04 From: Belgium Since last post: 2 days Last activity: 9 hours |
| ||
Well, all you need to do is call those functions, make a textbox with content $content and a button to save. | |||
Kyoufu Kawa I'm not bad. I'm just drawn that way. Level: 70 Posts: 2206/2481 EXP: 3008456 For next: 7355 Since: 03-19-04 From: Catgirl Central Since last post: 14 hours Last activity: 13 hours |
| ||
Eggsackly. I'll just whip up such a page and send it to my bro. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - [PHP] Need a quick little script for my brother | | | |