forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSIPP

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DanTheMan
Contributor
Contributor


Joined: 15 Mar 2002
Posts: 56
Location: Sweden

PostPosted: Wed Sep 03, 2003 9:06 am    Post subject: VDSIPP Reply with quote

Hi, a problem with a function in VDSIPP if someone could help me ?

I used this command with success on a U-serv (ftp-server).
%S = @INTERNET(FTP,FILEINFO,1,%%anyfile,S)

But it will not work on an a Unix based ftp-server, %S = 0 it that case.
how can i check that filessize (bytes) are the same on both sides after an upload to the ftp-server ?
Any clue ?

Thanks
Dan
Back to top
View user's profile Send private message
DanTheMan
Contributor
Contributor


Joined: 15 Mar 2002
Posts: 56
Location: Sweden

PostPosted: Wed Sep 03, 2003 11:29 am    Post subject: Reply with quote

The same problem described above also happens for FTP-server based on "WS-FTP Server Manager".

/Dan
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Sep 03, 2003 2:34 pm    Post subject: Reply with quote

Hello Dan, the FILEINFO function is not really reliable, it parses out data from the list of files and tries to get the filename and size. The problem is many ftp servers have their own unique format for reporting the list of names/sizes permission. For instance:

FILENAME PERMISSION SIZE DATE

The above could be the format for one ftp server while on another it could be:

FILENAME SIZE DATE PERMISSION


The VDSIPP's FILEINFO function only parses out a specific format and thus when it encounters the ftp servers you are having problems with it can't find the right size value and returns 0.

The best way is to use the FILELIST function and manually parse out the data to get the file name, permissions, size, date since each ftp server has it's own method to return the data.
Back to top
View user's profile Send private message
DanTheMan
Contributor
Contributor


Joined: 15 Mar 2002
Posts: 56
Location: Sweden

PostPosted: Thu Sep 04, 2003 1:06 pm    Post subject: Reply with quote

Thanks again PGWARE!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group