Re: Problem with mkdir() under windows.
| From: | Luis Mirabal | Date: | Tue, 16 Mar 2004 03:03:35 +0000 |
| Subject: | Re: Problem with mkdir() under windows. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180511@lists.php.net to get a copy of this message | ||
mmmh... i think your problem isn't in mkdir, it is in evil MAGIC QUOTES!
(they are on by default)
if you are getting the name of the directory from GET, POST or COOKIE, check
the get_magic_quotes_gpc(), else check get_magic_quotes_runtime(), if the
problem is in get_magic_quotes_runtime(), you can do
set_magic_quotes_runtime(0) beforegetting the directory name, so it won't be
quoted, but if the problem is in get_magic_quotes_gpc(), you will have to
do something like:
if(get_magic_quotes_gpc()) stripslashes($dirname);
luis.
"Brian J. Celenza" <bcelenza@fuse.net> escribió en el mensaje
news:20040315144231.80226.qmail@pb1.pair.com...
> I'm having a problem using the mkdir() function under windows when the
> directory containts a special character. For instance, the directory
> "Someone's Files", a forward slash is added before the 's and the
directory
> returns an error. Is there a way around this?
>
> Thank you
> Brian