Hi Monks,
I'm trying to use (Merlyn's Basic Cookie Management) script, and it's working, but I have a some questions about it:1. Creates files under: /tmp/File::Cache, but I'm on a shared webhost, and I'd rather have them under my own local tmp dir, in /home/username/tmp/File::Cache. How can I change the code to use that path? I see CGI has a -path switch, but I tried inserting this line:
-path => '/home/username/tmp',
after line 14 of Merlyn's code, but cache files are still being created in /tmp/File::Cache, and I would have thought that File::Cache controls where they are placed, but I can't see how to change that path in File::Cache.
2. I notice that if the directory structure under /tmp/File::Cache exists, but there are no cache files created in it yet, I get this error when I run the code:
"Insecure dependency in chdir while running with -T switch at /usr/lib/perl5/5.8.8/File/Find.pm line 751."
How should I get around this error? I see that removing the "-T" switch from the shebang line avoids it, and changing from File::Cache to Cache::FileCache seems to also, but I'm wondering if there's a better way.
Thanks.
In reply to Merlyn's Basic Cookie Management (1) by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |