I tried followed your suggestion, but it is not ok.
os : windows xp professional
httpd : iis5.1
my code is :
----------------------
link cgi
procedure cgimain()
fn:="C:\\Inetpub\\wwwroot\\sage3000\\test.pen"
p_test := open(fn,"w")| stop("test.pen can not be opend!")
cgiEcho("success")
close(p_test)
end
----------------------
Any problems?
Lu Song
----- Original Message -----
From: "Steve Wampler" <[EMAIL PROTECTED]>
To: "Lu Song" <[EMAIL PROTECTED]>
Cc: "Unicon Group" <[EMAIL PROTECTED]>
Sent: Saturday, April 03, 2004 9:11 PM
Subject: Re: [Unicon-group] about cgi.icn
> On Fri, 2004-04-02 at 23:02, Lu Song wrote:
> >
> > Who can tell me how to write data into the file on the harddisk in cgi
> > program in ICON/UNICON?
> >
> > When setting the filefold as "write access" and open file with format
> > of writing,
> > the error message appear.
> >
> > --------------------------------
> > procedure cgimain()
> > ...
> > p_test := open("test.pen","w")| {cgiEcho("test.pen can not be
> > opend!");return}
> >
> > ...
> > end
> > --------------------------------
> >
> > When running, the Internet explorer shou "test.pen can not be opend!"
> >
> Is the directory (sorry, "folder") writable? Try
> using an absolute path on the file name to a known
> writable folder. Don't know if that's the problem,
> but it very likely would be under Unix/Linux so
> maybe it's a problem under Windows...
> >
> > Lu
> --
> Steve Wampler <[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group