Re: Eu, CGI and file-access

new topic     » goto parent     » topic index » view thread      » older message » newer message

> ---------------------- Information from the mail header --------
> Sender:       Euphoria Programming <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       stab master <stabmaster_ at HOTMAIL.COM>
> Subject:      Eu, CGI and file-access
> ----------------------------------------------------------------
>

  <SNIP>

> I'm trying to create and open a file using something like this:
> atom fn
> fn=open("/home/results.res","wb")
>
> But open() will return -1 every, single time (argh..). Is there something
> I'm doing wrong? Is there some little quirk when running Euphoria under
> linux? Or are there perhaps some special rules when opening files through
a
> CGI-script? If I can't get this working, then I can't see any other way
out
> than to use Perl instead, and that's something I really don't want.
>

    What?  no signature? 8^(  And I so much enjoy leaving those in.
Nevermind....

Okay,  I'm no expert but lets cover the following common problems.

1. Directory permissions.
   Does the program have permission to write to that directory?

2. Spelling/Typo?
   Are you sure you have the directory structure correctly spelled?
   NOTE: this doesn't appear to be your problem.

3. I can't currently think of any more of the common mistakes.


        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu