Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-14-2006, 07:54 PM #1
- Join Date
- Jul 2006
- Thanked 0 Times in 0 Posts
PHP FTP -- spaces in directory name
I am using ftp_chdir( ) to change directories on an FTP site, and it is working perfectly. However, one of the directories on the site has a space in the name, and PHP cannot change to this directory.
Directory name = web internal
$path = "/web internal/";
I tried doing ftp_chdir($con,$path);
.. but enclosing it in quotes does not work.
The /folder_name/ syntax works with all of the other folders on the site.
12-14-2006, 08:03 PM #2
you might have to escape it. "/web\ internal/" or "/web\\ internal/" depending on how the parsing plays out.