Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP FTP -- spaces in directory name

    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?

  • #2
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    you might have to escape it. "/web\ internal/" or "/web\\ internal/" depending on how the parsing plays out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •