Home »
Imported messages »
comp.lang.php »
Re: ftp with win-filenames with chr#32 ?
Re: ftp with win-filenames with chr#32 ? [message #175051] |
Mon, 08 August 2011 17:59 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 8/8/2011 12:39 PM, 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
ftp_chdir($conn_id, 'C:\Program Files') or
ftp_chdir($conn_id, "C:\\Program Files")
And are you sure you have permission to access the directory?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
Goto Forum:
Current Time: Wed Nov 27 00:36:37 GMT 2024
Total time taken to generate the page: 0.02186 seconds