Re: Module file writing problem





webmaster@xxxxxxxxxxxxxxxxxxx wrote:

Hi,

I've writting a module to store the functions I use through my website.
One of the functions needs to access a text file,
cgi-bin/user/file.dat. The function only works when the script using it
is in cgi-bin/user/. At first the line looked like "open (FILE,
'file.dat');" but then I changed it to "open (FILE,
'/user/file.dat');". It still works fine when the script is in
cgi-bin/user/, but not when it's anywhere else. What am I doing wrong?

Not decscribing the way in which it fails. At the very least show us the $! error.


You've given very little to go on but at a guess this is a permissions and webserver config issue not a Perl one.

Please read the posting guidelines.

.



Relevant Pages

  • Module file writing problem
    ... I've writting a module to store the functions I use through my website. ... One of the functions needs to access a text file, ...
    (comp.lang.perl.misc)
  • Roxanna might half warm our truck
    ... at once the script? ... store till the platform. ... Many public constitutional strokes constantly ... accurately depict Ayub and Saad's average support. ...
    (sci.crypt)
  • Re: Storing client date and time
    ... > I would like to get the clients date and time and store ... the moment) but without it your "client time" doesn't really mean anything. ... The image tag would point to a server-side script that would evaluate the ...
    (comp.lang.javascript)
  • Re: Tooltips ?
    ... DIV with a high zindex method works if script is enabled (about 90% ... The IE popup method works only in IE6 with script enabled. ... was to a publicly-posted website. ... They test it out in their browser, ...
    (microsoft.public.scripting.vbscript)
  • Cookie not working for CGI logon script
    ... The problem I'm having is that umzadmin.cgi script makes me login twice ... before I can use the website. ... sub loginScreen { ... &SortForm), last SWITCH if param; ...
    (comp.lang.perl.misc)