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 message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I get a parse error every time and I've modified the scripts a bunch of
> times already.
>
> // Make new directory function
> $default_dir = ("D:\www\Proj\$textfield2\");
> if(file_exists($default_dir)) rmdir($default_dir);
> mkdir($default_dir, 0777);
>
> // Copy template.html to new directory
> $filename = D:Automator\auto_2\Template.html;
> copy($filename, ($default_dir) .overview.html);
>
> Can I not have these two scripts run together? The mkdir function alone
> works. Can someone tell me what I'm doing wrong?
>
> Thank you.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to