Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2755 > unrolled thread

Re: ftp with win-filenames with chr#32 ?

Started byJerry Stuckle <jstucklex@attglobal.net>
First post2011-08-08 13:59 -0400
Last post2011-08-08 13:59 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.php

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ftp with win-filenames with chr#32 ? Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-08 13:59 -0400

#2755 — Re: ftp with win-filenames with chr#32 ?

FromJerry Stuckle <jstucklex@attglobal.net>
Date2011-08-08 13:59 -0400
SubjectRe: ftp with win-filenames with chr#32 ?
Message-ID<j1p856$kuo$1@dont-email.me>
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@attglobal.net
==================

[toc] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web