Escape the backslash before using it
$errorCode = $TK->OpenOutputFile("D:\\public\k1\\compiledCIO\\$filename");
Luis
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 4:32 PM
Subject: [PHP-WIN] back slash issue
>
> I have a situation where I need to use backslashes as part of the string:
>
> $errorCode = $TK->OpenOutputFile("D:\public\k1\compiledCIO\$filename");
>
> Obviously in the above example the backslash terminates the following
> character which causes a problem. I have tried several different
> arrangements and each time something occurs that causes problems with the
> string. Any suggestions??
>
> Thanks,
> Ron
>
>
>
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php