I don't know much about them CGI scripts, but here's an extract from a PHP
script that opens a text file, deletes it's current content & plunks the new
text into it.

$filename = "filename.txt";
$content  = $_POST["content"];

// Open file and write new contents
$handle = fopen ($filename, "w");
fwrite ($handle, $content);
fclose ($handle);

I've vastly simplified the script for this post, so there might be some
bugs. But the essence is in the last 3 statements. HTH.

Pranav Negandhi
concept-I
www.cimultimedia.com


<snip>
> Does anyone knows where I can find a CGI script that given a URL and
> the text to save can save it?
<snip>

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to