...

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



darobcop
12-14-2006, 06:54 PM
Hi,
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, 07:03 PM
you might have to escape it. "/web\ internal/" or "/web\\ internal/" depending on how the parsing plays out.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum