W
webmaster
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?
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?