View Full Version : PHP FTP -- spaces in directory name

12-14-2006, 07:54 PM
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.

Any ideas?

ralph l mayo
12-14-2006, 08:03 PM
you might have to escape it. "/web\ internal/" or "/web\\ internal/" depending on how the parsing plays out.