Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / Goga's FTP Client Plugin

Author
Message
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Feb 2006 00:33 Edited at: 6th Feb 2006 00:34
hey all, i need some testers for my new dll that i made for darkbasic pro.

its Ftp Client Plugin with 40 different commands and MUCH - MUCH more faster than DBP's oreginal commands.

this is demo version is supports ALL of the FULL version's commands.
so please try it and tell me if there is a bugs and also read the command list and tell me if i misspelled or something..


big thanks!


in the ZIP file, there is a commands document file.
(put the dll into DarkBasicPro's Plugins-User folder.

(check the attachment.)

Attachments

Login to view attachments
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Feb 2006 18:45 Edited at: 9th Feb 2006 22:50
here is the commands:

Goga's Ftp Client
Version: 0.5 BETA


CDebugOn
This command will set the Debug ON by typing it in top of your code.

CDebugOff
This command will set the Debug OFF by typing it in top of your code.

CFtpUser UserName as string
you writing the username(login) of the ftp.

CFtpHost HostName as string
You writing the IP/Hostname of the ftp where you want to join.

CFtpSetPort PortNumber as Value
This command will set the port of the ftp where you want to connect to.
(by not typing it, the port will stay default: 21)

CFtpPass Password as string
You setting the password of the ftp where you want to join

CFtpConnect AnonymousFlag as boolean, TimeOut as dword
thats the command where you connecting to the ftp.
AnonymousFlag = if u want to connect as Anonymous, then you chosing: 1
TimeOut = this is the TimeOut of the ftp connection if milliseconds (if u want it as default, you typing 0)

CFtpChangeDir DirName as string
this command will set you the Dir in FTP.
DirName = this is the dir name that u want to Change.

CFtpConnected
By returning value 1, it will say that you are connected to the ftp.
by returning value 0, it will say that u are not connected to the ftp.

CFtpGetList
this command uses only once per folder. this command checks you all of the files that exists in the FTP.

CFtpBytesToKiloBytes(Bytes as dword)
this command convering bytes to KiloBytes.

CFtpFileQuantity
This command will return you a value of how many files are founded (using the command CFtpGetList) in the ftp.

CFtpClearListing
This command will clear you the CFtpGetList list.

CFtpGetFileName(FileNumber)
this command will return you a selected file number's Name.

CFtpGetFileTime(FileNumber)
this command will return you a selected file number's creation time.

CFtpGetFileSize(FileNumber)
this command will return you a selected file number's Size

CFtpGetFileMonth(FileNumber)
this command will return you a selected file number's creation Month
.
CFtpGetFileFormat(FileNumber)
this command will return you a selected file number's Format.
if the selected filenumber is Folder, then it will return you as string "Folder"
if the selected filenumber is File, it will return you as "File"

CFtpDownloadFile FtpFileName as string, LocalFileName as stringthis command will download you a file from ftp to your PC.
FtpFileName = you selecting the file name of the ftp.
LocalFileName = this command is selects where you want to download the file.
it also can return 1 if the download successes.

CFtpUploadFile LocalFileName as string, FtpFileName as string, Append as boolean
this command will upload you a file from PC to FTP.
LocalFileName = this command is selects the file that you want to upload to FTP.
FtpFileName = this is file name of the ftp that you whish to upload on.
Append = if append value is 1, then it will APPEND the ftp file with the new file, if the append value is 0, it will normaly delete the ftp file and put up the new file.
it also can return 1 if the upload successes.

CFtpFileExist FtpFileName as string
this command checks if file exist on FTP or not.
FtpFileName = File name that you whish to know if it exist.
it will return 0 if the file does not exist. it will return 1 if the file exist.

CFtpFolderExist FtpFolderName as string
this command checks if Folder exist on FTP or not.
FtpFolderName = Folder name that you whish to know if it exist.
it will return 0 if the Folder does not exist. it will return 1 if the file exist.

CFtpChangeDirUp
this command will change the dir one step UP.

CFtpDisconnect
this command will disconnect from FTP.
it will also return 1 if the change successes and 0 if he cant change dir up.

CFtpDeleteFile FileName as string
this command will delete you a selected file in FTP.
it also can return 1 if the deleting successes.

CFtpDeleteFolder FolderName as string
this command will delete you a selected file in FTP.
it also can return 1 if the deleting successes.

CFtpRename OreginalFileName as string, NewFileName as string
this command will rename you File/Folder
OreginalFileName = oreginal file/folder name that you want to be Renamed
NewFileName = New File/Folder name.

CFtpResumeSupported
this command is checks if File Resume is supported so you can RESUME the upload if something happened.
by returning 1, it will means that the resume is supported.
by returning 0, it will means that the resume is not available.

CFtpMakeFolder FolderName as string
this command will create you folder in FTP.
FolderName = Folder name that you whish to create.




Examples:

- Connect:
CDebugOn
CFTPHost "Host"
CFTPUser "FTPUser"
CFTPPass "Password"
success = CFtpConnect(0,0)
if success = 1 then print "Successed!" else print "Can't connect."
wait key

- Dir Check:
print "Getting File List..."
sync
CFtpGetList
totalfiles = CFtpFileQuantity()
print
for a = 1 to TotalFiles
print "FileName: "+CFtpGetFileName(a)
print "FileSize: "+str$(CFtpGetFileSize(a))+"("+str$(BytesToKiloBytes(CFtpGetFileSize(a)))+"KB)"
print "CreatedFile Time: "+CFtpGetFileTime(a)
print "CreatedFile Day: "+str$(CFtpGetFileDay(a))
print "CreatedFile Month: "+CFtpGetFileMonth(a)
print "Format: "+CFtpGetFileFormat(a)
next a
print
print "Total Files: "+str$(TotalFiles)
CFtpClearListing
wait key


sorry for my bad english. fix me if i misspelled somewhere.

Seppuku Arts
Moderator
17
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 6th Feb 2006 21:00
Sounds and looks really good dude, not something I would use, looks like you weren't getting replies so I said something But if ever get the urge to FTP host, I'll know where to look


"I want to put a bullet through my head everytime I think of you!!!"- Slayer
The admiral
19
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 6th Feb 2006 21:20
Looks good dude quite useful as dbpros commands are not so good hehe.

The admiral
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Feb 2006 21:34
Quote: "looks like you weren't getting replies so I said something"

and thanks for that!

@The admiral: yeah, they are bad
for example, to search for file in dbp, u using ftp find first/next all the time until the file name is repeated or something like that

in my plugin its like that:


easy. isnt it?

Peter H
18
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 6th Feb 2006 22:55 Edited at: 6th Feb 2006 23:03
hmm, if this works nicely it would be nice to use it for my highscore systemzorz...

because the DBPro one takes like 11 seconds to connect

*downloads*

[edit] It seemed to take longer then the DBPro ftp commands

"We make the worst games in the universe..."
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Feb 2006 23:38 Edited at: 6th Feb 2006 23:53
Quote: "[edit] It seemed to take longer then the DBPro ftp commands"


no way dude. i checked the speed between dbp's connection command and this one, and the result was that my connection is faster in almost half..

did you checked both of the connection commands? dbp once and mine?

Peter H
18
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 7th Feb 2006 17:14 Edited at: 7th Feb 2006 17:16
using this code for yours (i changed my username and pass for both of these of course)


and this code for DBPro's


i get these times after running both twice: (in milliseconds)
DBPro's: 10515 and 10588
Your's: 10575 and 10668

so they seem to be about the same to me

maybe i did something wrong in one of them? or maybe it's just my machine

"We make the worst games in the universe..."
John Y
Synergy Editor Developer
19
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 7th Feb 2006 19:36
I think the DBPro ones are just API calls to the respective Windows FTP API's.

Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 7th Feb 2006 21:03
humm.. weird.
basicly, when im using dbp connection command, its doing 2 things
1) connecting
2) getting directory list

in my connection system
it ONLY connects
and for getting directory list, there is another command..


anyhow.
mabye, if you will try to connect using dbp commands 1st, and after that, try my commands, it might be faster than dbp connection.
because, second time is always faster.

Thebeely
17
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 10th Feb 2006 08:59
This looks very nice.

Za dom - spremni!
Chris Franklin
16
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 10th Feb 2006 17:40
lol dbp ftp is faster?

Fps world of mayhem 10%

ThomasFN
17
Years of Service
User Offline
Joined: 26th Aug 2004
Location:
Posted: 11th Feb 2006 20:56
little off topic, but 3ds master - how on earth does your avatar tell me my computer settings!?

Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 11th Feb 2006 22:29
Quote: "little off topic, but 3ds master - how on earth does your avatar tell me my computer settings!?"

its nothing perconal. it gets eveyone's computer settings.. =]

its not actually a problem to do such thing. cuz for example there is a site http://www.showmyip.com/ that also gets your own computer settings and much much more..

Chris Franklin
16
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 11th Feb 2006 22:40
Quote: "little off topic, but 3ds master - how on earth does your avatar tell me my computer settings!?
"

Cool ain't it get it off www.danasoft.com

Theme park simulator 15% Currently making object selection
The admiral
19
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 14th Feb 2006 06:51 Edited at: 14th Feb 2006 07:24
So when does the final version come out? By the way that little pop up with the dll is very annoying could you not have that?? I wouldnt advice selling this not many or anyone would pay for it just friendly advice.

The admiral
Lukas W
18
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th Feb 2006 08:25
cool little dll it might come handy.
is there a progress bar so when downloading a file from ftp you see how many percent or bytes are downloaded?

HorizShootiz progress 1337% :/
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 14th Feb 2006 10:00
Quote: "So when does the final version come out? By the way that little pop up with the dll is very annoying could you not have that?? I wouldnt advice selling this not many or anyone would pay for it just friendly advice."

the popup means that the version is demo
and for the full version will be payable.

(ill also add smooth file download/upload - no engine freeze while downloading/uploading)

the new version will come in a week or two

Quote: "cool little dll it might come handy.
is there a progress bar so when downloading a file from ftp you see how many percent or bytes are downloaded?"

1st of all, its not a "little" dll
its v. big one with 40 commands (soon more)
and about the progress bar, ill add GetDownloadingPercent/Size etc. so you guys will be able to see how much percent it downloaded.

The admiral
19
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 15th Feb 2006 04:38
I would strongly advice agianst selling it trust me no one will buy it. There have been greater more useful dlls that wouldnt sell and there isnt much demand for ftp. You can tell by the posts here people think i may be useful on the odd occation but not important so just make it free and create a better dll more suited for selling.

The admiral
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 15th Feb 2006 08:58
actually, who will buy it, will get 1GB Free FTP Account space for a year. thats why i want to sell it

The admiral
19
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 15th Feb 2006 10:20
I guess but anyone with asite will have unlimited ftp or large amounts of ftp accounts anyway.

The admiral
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 15th Feb 2006 15:09
Quote: "I guess but anyone with asite will have unlimited ftp or large amounts of ftp accounts anyway.

"


humm.. you are right.. ill consider of selling it =]

Chris Franklin
16
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 15th Feb 2006 15:10
my site already has unlimited ftp bandwidth and unlimited ftp accounts

warship45
17
Years of Service
User Offline
Joined: 24th Jul 2004
Location: uk
Posted: 18th Feb 2006 21:08
this is well good you lot should realy use it it connected to my ftp hosted with ftpserver.com in less than 3 secs where with dbpro commards it was moare like 10sec. the commards are easy to use and i would reconment it to anyone who asked me what pugin is the best.


thnaks for this grate ftp pugin i would never go back to dbpro ones after useing urs

www.0z0.co.uk for your free web site hosting needs
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Feb 2006 21:10
thanks warship45.

at least SOMEONE here shows me some respect

Chris Franklin
16
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 18th Feb 2006 21:21 Edited at: 13th Mar 2006 18:50
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Feb 2006 21:26
im sure he doesnt likes you too..

Keemo1000
17
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 11th Mar 2006 20:12 Edited at: 11th Mar 2006 20:13
Are you saying we can upload sites with that ?



In DBP - 3D is easier than 2D , 2 player is easier than Single player , Dont you think life rocks .. ?
Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 11th Mar 2006 21:17
Quote: "Are you saying we can upload sites with that ?"



in the "mgsolids.com" site, there is FTP server, so you can get into it.. and yes, you can upload sites using that way

Chris Franklin
16
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 13th Mar 2006 18:51
wow ur giving it away free now

Sergey K
18
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 14th Mar 2006 11:12
@Sunrise 3D: no im not. its just you. i gave you the plugin as a friend, and you giving it to everyone else. i think ill ask for a reuqest to block you on the forums..

Login to post a reply

Server time is: 2022-06-30 21:34:09
Your offset time is: 2022-06-30 21:34:09