Re: Trouble moving directory
| From: | ac | Date: | Fri, 14 Oct 2005 15:17:09 +0000 |
| Subject: | Re: Trouble moving directory | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224134@lists.php.net to get a copy of this message | ||
escapeshellarg() works quite well, why you say its still failed? did u try?
do a
<?php echo escapeshellarg('Dir That (Won't Move)/'); ?>
will produce
'Dir That (Won'\''t Move)'
and this does fit into shell, even
(' and )' is not escaped,
for in bash, all thing quoted in single quote will be treated as one
whole string and any meta character wont be interpreted by the shell.
so , please first try, then post your problem.
On 10/13/05, -k. <telirum@yahoo.com> wrote:
> --- Jasper Bryant-Greene <jasper@bryant-greene.name> wrote:
> > $source_dir = escapeshellarg( '/some/dir/Dir That Won't Move/' );
>
>
> Unfortunately escapeshellarg doesn't work for all cases, it will escape the " '
> " in that example
> but it doesn't escape other characters such as " ) ". So...
>
> $source_dir = escapeshellarg( '/some/dir/Dir That (Won't Move)/' );
>
> ...fails as well. Any other ideas?
>
>
>
>
> -k.
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
all born, to be dead