At 7:37 AM -0600 2/2/01, <[EMAIL PROTECTED]> wrote:
>I am writing a CGI that grabs a data stream from a form and writes 
>it to a file.  I want it to write it to a seperate file every time 
>it executes so I decided to just use the time to be the filename.
>
>I am trying to put all of these files into a folder called tchorders
>
>$ofile="tchorders:".time();
>open (OUT, ">>$ofile") || die "SERVER ERROR!";
>
>What is wrong with this peice of code.  I am stumped?  I get "SEVER ERROR"
>instead of a file creation.  The folling works ok, but doe not put it into the
>seperat directory.
>
>$ofile=time();
>open (OUT, ">>$ofile") || die "SERVER ERROR!";

One of your volumes is named "tchorders"?  If you're trying to put 
files into a folder named "tchorders" in the current folder, you need

$ofile=":tchorders:".time();

Or perhaps you need the full path to the folder.
-- 
--
Paul Schinder
[EMAIL PROTECTED]

Reply via email to