Not retrieving all text file
Posted: Tue Jun 23, 2015 6:43 am
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.
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.
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");
Please guide where do I change in configuration so that the same program will work with WING FTP user.
Thank you.