Re: [PHP] Trouble moving directory

2005-10-14 Thread Brent Baisley
In your example, the problem is that the name has spaces, which the shell uses as a delimiter. So That Won't Move/ is kind of being considered parameters instead of part of the dir. Using the command line (i.e. shell/terminal) will give you more feedback as to what is happening

Re: [PHP] Trouble moving directory

2005-10-14 Thread Miles Thompson
One of the nice things MSFT did was to allow spaces in directory and file names. It created more work for programmers. One of the LOUSIEST things MSFT did was allowing spaces in directory and file names, because of the needless, tedious parsing and checking it requires. So much simpler to

Re: [PHP] Trouble moving directory

2005-10-14 Thread Brent Baisley
MSFT allowed spaces? They were behind in allowing spaces (and long file names) Apple allowed them far before MS, and Unix allowed spaces far before Apple. Unix just assumes a space is a command/parameter delimiter first and part of the name second. Just like multiplication takes precedence

Re: [PHP] Trouble moving directory

2005-10-14 Thread ac
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

Re: [PHP] Trouble moving directory

2005-10-14 Thread Richard Lynch
On Fri, October 14, 2005 8:28 am, Miles Thompson wrote: One of the nice things MSFT did was to allow spaces in directory and file names. It created more work for programmers. I'm not familiar with MSFT... It must be a new acronym for Apple MacOS :-), circa 1984, which (AFAIK) was the first

Re: [PHP] Trouble moving directory

2005-10-13 Thread Robin Vickery
On 10/13/05, -k. [EMAIL PROTECTED] wrote: --- Jasper Bryant-Greene [EMAIL PROTECTED] 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

[PHP] Trouble moving directory

2005-10-12 Thread -k.
I'm having trouble moving some directories. My script works fine on some directories but doesn't move others. It seems to have trouble with directories with non alphanumeric charters. I'm running Red Hat FC2. I'm trying to move the directory basically like this... ?Php $source_dir =

Re: [PHP] Trouble moving directory

2005-10-12 Thread Jasper Bryant-Greene
-k. wrote: I'm having trouble moving some directories. My script works fine on some directories but doesn't move others. It seems to have trouble with directories with non alphanumeric charters. I'm running Red Hat FC2. I'm trying to move the directory basically like this... ?Php

Re: [PHP] Trouble moving directory

2005-10-12 Thread -k.
--- Jasper Bryant-Greene [EMAIL PROTECTED] 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 =