[PHP] Re: Cannot copy a file to a dynamic folder

2001-07-31 Thread Richard Lynch
> // Make new directory function > $default_dir = ("D:\www\Proj\$textfield2\"); The ()'s are silly... They force the string to be evaluated before any other expressions in this statement, and there aren't any. The \'s are bad, though. \ is a "special" character inside of " and you need to put \

[PHP] Re: Cannot copy a file to a dynamic folder

2001-07-17 Thread elias
Hi! when you use the "\" character in a string you have to escape it by putting "\\" instead of one! > $default_dir = ("D:\www\Proj\$textfield2\"); would become: $default_dir = "D:\\www\\Proj\\$textfield2\\"; do the same for the $filename variable. "Vincent Chew" <[EMAIL PROTECTED]> wrote in m