[LON-CAPA-users] File access from LonCapa?
Guy Albertelli II
Thu, 15 Jun 2006 12:47:57 -0400 (EDT)
> <font size="2">Is it possible to access files from within the Perl
> scripts in LonCapa?
No, 'open' and similar opcodes have been specifically disabled to
prevent hack attempts against the server.
The only means to read a file is the <import>.
> My thought was to publish a text file, then try and
> read/update it from within a perl script.
We specifically can't allow 'update' since that would bypass the
publication mechanism and thus servers would fail to be in sync.