Re: [PHP-DEV] new FTP function

2013-01-18 Thread KISE
ile". anyway thanks for the hints, i have sent request to bugs.php.net, and i dont like to spam the dev list since they quite busy already PS: and sorry for the grammar errors, English is not my native tongue. On Fri, Jan 18, 2013 at 6:37 PM, Marco Pivetta wrote: > Heya KISE, > &g

Re: [PHP-DEV] new FTP function

2013-01-18 Thread KISE
, 2013 at 3:18 PM, KISE wrote: > >> $res = ftp_nlist($this->conn_id, '-dF '. $dir); >> > > This could be done in two lines. > > function dir_exists($conn, $dir) { > $list = ftp_nlist($conn, '-dF '. $dir); > return in_array($dir, $list); > } >

Re: [PHP-DEV] new FTP function

2013-01-18 Thread KISE
stuff there, which is also not true. > > Thanks, > Paul. > > > On Fri, Jan 18, 2013 at 3:00 PM, Will Fitch wrote: > >> >> On Jan 18, 2013, at 9:53 AM, KISE wrote: >> >> > Hi >> > >> > II would like to see "ftp_dir_exists()&q

[PHP-DEV] new FTP function

2013-01-18 Thread KISE
Hi II would like to see "ftp_dir_exists()" function in PHP, right now its kinda unreasonable to expect people to use hacks such as "is_dir()" and having to re-authenticate just to check if the dir exists, I also dont think its good idea to use "ftp_chdir()" just to check if the directory exists, b