'ftp_get(): Can't open remote file with SPACES in name

I am using php function ftp_get()

it works good but i can't open file with spaces in name I got an error

ftp_get(): Can't open HCPC2065/PHOTO A (324).JPG: No such file or directory

I tried to replace " " with "\ " It was no effect ((

please help me how to escape it for ftp copying ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source