|
|
|
|
|
|
![]() |
#1 |
Certified Nice Person
|
Tiny text script thing-a-ma-bob
Anyone know of a light script that can overwrite a single text file from a form? In other words, I want to be able to paste a bunch of text into a <textarea> of a form, hit submit, and have it overwrite what ever info is on data.txt, for example.
I can probably reverse engineer some bigger script that stores data on flatfiles and figure out how it's done, but if anyone knows of a small script that does that, I'd be eternally grateful, or at least until I fuck it all up.
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#2 |
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
|
You can use part of Recip Philes for that, and it's already on your server
![]() Last edited by MadMax; 2006-01-05 at 11:35 AM.. |
![]() |
![]() |
![]() |
#3 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Code:
$filename = "/full/path/to/filename"; $handle = fopen($filename,"wb"); fwrite($handle,$_REQUEST['textareaname']); fclose($handle);
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#4 |
Certified Nice Person
|
Awesome, Chris! Thanks tons.
![]() Madmax, I'll probably hit you up anyway just to keep your productivity levels low. ![]()
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#5 | |
Eighteen 'til I Die
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#6 | |
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Eighteen 'til I Die
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 | |
Certified Nice Person
|
Quote:
ICQ? How do you spell that? I'll google it.
__________________
Click here to purchase a bridge I'm selling. |
|
![]() |
![]() |
![]() |
|
|