Hello,
I basically want to store files in a folder, depending on the user name: $user, and called $date.txt.
It was no problem creating them. The only problem is that I can't do something like this:
if (blah = true) {$file = /$user/$date.txt;}
And then later save to $file.
Anytime I try this, I get the following error message:
Insecure dependency in open while running setgid at save_patch_file.pl line 111
I can get around it by doing something like:
if (blah = true && $user = foobar){$file = /foobar/$date.txt;}
But since I already have that blah = true (actually has 4 possibilities), and there will be up to 25 users, that means that I'll have to write 100 if statements if I can't use a damn variable as a folder name with another variable as the file name!
I hope you can follow my ramblings!
Thanks for the help and hints as always.
Best regards,
I basically want to store files in a folder, depending on the user name: $user, and called $date.txt.
It was no problem creating them. The only problem is that I can't do something like this:
if (blah = true) {$file = /$user/$date.txt;}
And then later save to $file.
Anytime I try this, I get the following error message:
Insecure dependency in open while running setgid at save_patch_file.pl line 111
I can get around it by doing something like:
if (blah = true && $user = foobar){$file = /foobar/$date.txt;}
But since I already have that blah = true (actually has 4 possibilities), and there will be up to 25 users, that means that I'll have to write 100 if statements if I can't use a damn variable as a folder name with another variable as the file name!
I hope you can follow my ramblings!
Thanks for the help and hints as always.
Best regards,