Re: Module file writing problem
- From: Brian McCauley <nobull@xxxxxxxx>
- Date: Sat, 30 Apr 2005 13:34:57 +0100
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.
.
- References:
- Module file writing problem
- From: webmaster
- Module file writing problem
- Prev by Date: Re: Perfecting index.pl some more!
- Next by Date: Re: Perfecting index.pl some more!
- Previous by thread: Module file writing problem
- Next by thread: Re: Module file writing problem
- Index(es):
Relevant Pages
|