Re: Problem with mkdir() under windows.
| From: | Richard Davey | Date: | Mon, 15 Mar 2004 15:00:36 +0000 |
| Subject: | Re: Problem with mkdir() under windows. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180465@lists.php.net to get a copy of this message | ||
Hello Brian,
Monday, March 15, 2004, 2:42:14 PM, you wrote:
BJC> I'm having a problem using the mkdir() function under windows when the
BJC> directory containts a special character. For instance, the directory
BJC> "Someone's Files", a forward slash is added before the 's and the
BJC> directory
BJC> returns an error. Is there a way around this?
This works fine for me on a Windows XP box:
<?
if (mkdir("D:\bob's") == TRUE)
{
echo "Directory created";
}
else
{
echo "Failed to create directory";
}
?>
how are you building the directory name? Or did you mean some other
"special" characters?
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html