Home »
Imported messages »
comp.lang.php »
Re: ftp with win-filenames with chr#32 ?
Re: ftp with win-filenames with chr#32 ? [message #175052] |
Mon, 08 August 2011 21:25 |
![](//www.gravatar.com/avatar/5a04b58209c8dd80f5e593ab3edca044?s=64&d=mm&r=g) |
richard
![](/forum/images/flags/us.png) Messages: 213 Registered: June 2013
Karma:
|
Senior Member |
|
|
On Mon, 08 Aug 2011 18:39:14 +0200, Bjarne Jensen wrote:
> if (ftp_chdir($conn_id, "C:\Program Files")) {
> echo "REMOTE dir is now: " . ftp_pwd($conn_id) . "<br>";
> }
> else { echo "Couldn't change directory\n";
> }
>
>
> Warning: ftp_chdir() [function.ftp-chdir]: "C:\Program Files": Directory
> not found. in /var/www/ftp.php on line 20
> Couldn't change directory
>
> ---------
>
> How do you work around that?
> (yes, the dir is there)
>
> /Bjarne
Was this purely as an example of the filename?
Most servers won't allow you to ftp to the C:\ root directory.
As this is under the control of the server owner, not the domain owner.
|
|
|
Goto Forum:
Current Time: Sun Feb 16 23:36:37 GMT 2025
Total time taken to generate the page: 0.06372 seconds