[UPHPU] FTP question
Mac Newbold
mac at macnewbold.com
Thu Jul 27 13:01:28 MDT 2006
Today at 12:54pm, Kurt Didenhover said:
> I have a client that needs to pull down a file from an FTP server. I'm trying
> to use the built in php functions to do this but I'm running into a problem.
> The file I'm trying to get has spaces in it and PHP chokes on the spaces.
>
> Is there any way around this? Ideas?
We use the PHP FTP stuff in some of our work. Where is it choking for you?
What error message(s) are you getting? If you can paste some of your code
and some of the output, that might help too.
If you haven't already tried escaping the spaces with backslashes, that
would be my first thought. My next try would be quoting the string with
spaces in it. If neither of those work, I'd try using appropriate
wildcards (like ? or maybe *) to match the files for an mget or something.
And as a last resort, you could rename the files so they don't have spaces
in them anymore, if that's a possibility.
Mac
--
Mac Newbold MNE - Mac Newbold Enterprises, LLC
mac at macnewbold.com http://www.macnewbold.com/
More information about the UPHPU
mailing list