Tom McKellips wrote:
How do I make mkdir work with a variable? I can putAre you running under 'taint' mode?
mkdir '/mydir'; in a cgiscript and it will work perfect every time but if I use a variable
mkdir $mydir; it will never work It does not appear to make any difference how I place " or ' or anything else. I have tested the variable to make sure it contains the info I want using the print statement and it is correct every time. It just will not create a directory I even set the parent directory to 777 still with no luck. Any suggestions?
What error is given? Something like the following will help:
mkdir '/tmp/directory' or die "Can't make directory: $!";
$! stores the error message set by a failing mkdir (or other system calls)
Are you sure the user running the web server has permission to write the new directory, just because you can doesn't mean that user can? Is there anything in the error log? (I am assuming this is CGI related)
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]