First : I've been looking for a dll / class for FXP transfers for ages and finally found SmartFTP DLL 2 days ago. I was really amazed. And finally got to work today after trying to figure out the .chm wich is included ( bit hard to figure it out ).
I've been trying to understand the library by trying out the example for php first. http://www.smartftp....dDirectory.phps
But i keep getting an error :
The code is exactly the same as the example and the code logs in and sends list command perfectly :
Caught exception: Unable to lookup `Directory': Unknown name.
Setting Listmode didnt help either
[20080301 09:38:47] TYPE I
[20080301 09:38:47] 200 Type set to I
[20080301 09:38:47] PASV
[20080301 09:38:47] 227 Entering Passive Mode (XXXXXXXXXXXX)
[20080301 09:38:47] Opening data connection to XXXXXX Port: 4912
[20080301 09:38:47] LIST
[20080301 09:38:47] 150 Opening ASCII mode data connection for file list
[20080301 09:38:47] 4982 bytes transferred. (23,9 KB/s) (203 ms)
[20080301 09:38:47] 226 Transfer complete.
Is there something missing in the sample, or is this just a bug.
I'm using PHP 5.2.5 on Win2k3 SP2
Also i have a second question : How do i catch fired events in php ?
And a third question : Does the library support the commands being sent to the com object and not waiting for a return ? i'd like to open multiple connections and use an array to store the objects in and loop through them so i can send to multiple servers.
I'm sorry i cant purchase the software ( and post in the other support topic ), i'd really like to because its really amazing ( if i get the dir listing to work ), i'm a student so i cant afford it, but i wouldnt mind contributing PHP code for the library. I'm making an entire class for it.
With kind regards,
[EDIT] : I Found in a topic for ASP code the same problem, you guys said to replace Directory with Items, this works but i was wondering what are the valid properties of this method? I'm not sure what i can extract from it. You guys should also update this in your example code and in the help .chm included.