Welcome Guest, Not a member yet? Register   Sign In
ftp->list_files() Question
#1

[eluser]kyymehra[/eluser]
I had what I thought to be a super smooth transition from localhost to putting my website live. Just imported the database, uploaded the files via FTP, then changed the database.php and ftp.php config files to connect to the live database and server.

Instead what I had was a mess of code that needed changing because for some reason the value returned by ftp->list_files() varied from what was returned (and is still returned on localhost).

Localhost:
$this->ftp->list_files('/foo/bar/') returns '/foo/bar/file1.ext', '/foo/bar/file2.ext', etc

Live:
$this->ftp->list_file('/foo/bar/') returns 'file1.ext', 'file2.ext', etc

The array items on the live site make more sense, it returns the filename without the path. I'm wondering why they differ. What kind of setting would produce these different results?


Messages In This Thread
ftp->list_files() Question - by El Forum - 05-01-2013, 09:06 AM
ftp->list_files() Question - by El Forum - 05-01-2013, 11:03 AM
ftp->list_files() Question - by El Forum - 05-01-2013, 02:44 PM
ftp->list_files() Question - by El Forum - 05-02-2013, 12:45 AM
ftp->list_files() Question - by El Forum - 05-02-2013, 12:06 PM
ftp->list_files() Question - by El Forum - 05-03-2013, 01:52 AM
ftp->list_files() Question - by El Forum - 05-03-2013, 07:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB