Not retrieving all text file

Please post here if you have problems in using Wing FTP Server.
Post Reply
sinha_roop
Posts: 7
Joined: Mon Jul 09, 2012 10:36 am

Not retrieving all text file

Post by sinha_roop »

I am using wing ftp server 4.0.9 in Ubuntu 12.04.
There are 20 domains and total 100 users almost.
Everything is working fine, with FileZilla.
When I get a single file through PHP still there is no problem.

However I get the text file (10-30 text files) through PHP program. It's give error that 102.txt file not found.
Suppose 100.txt,101.txt,102.txt,103.txt . . . files laying in the folder.
When I re-execute the same program it say 101.txt file not found.
after refreshing 3 to 4 times it executes successfully without any problem.
Any Idea why?
I am using following code to open file and put its content in php variable.

Code: Select all

$kp1contents = file("ftp://user:password@IPAddress:Port/Path/filename.txt");
The same program has been tested by using Ubuntu default SSH FTP and its work without any problem.

Please guide where do I change in configuration so that the same program will work with WING FTP user.
Thank you.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Not retrieving all text file

Post by FTP »

First, please upgrade to the latest version 4.4.9, if it is still the same with the version 4.4.9, then please paste the full PHP code.
Post Reply