Simple server connection?...

Ask about the individual Gambas components here.
Post Reply
chrisRoald
Posts: 47
Joined: Monday 25th December 2023 7:54pm

Simple server connection?...

Post by chrisRoald »

Hi,
Just looking to see if anyone has created a server-connection form/control that can display public_html folder files in maybe the way that a fileChooser does?
What I know about servers and domains can be written on a postage-stamp (remember them?) so I may be asking a really dumb thing here :? ~~
My laptop's fm - Nemo (based on Nautilus, I think) can connect to my domain-name server with the requisite sftp/webDav server and user parameters entered. So I want to know if my Gambas program can do a similar thing?

Any help gratefully...
Regards,
C.
chrisRoald
Posts: 47
Joined: Monday 25th December 2023 7:54pm

Re: Simple server connection?...

Post by chrisRoald »

Screenshot from 2025-03-11 15-41-40.png
Screenshot from 2025-03-11 15-41-40.png (24.38 KiB) Viewed 52937 times
User avatar
gbWilly
Posts: 120
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Simple server connection?...

Post by gbWilly »

chrisRoald wrote: Tuesday 11th March 2025 3:08pm My laptop's fm - Nemo (based on Nautilus, I think) can connect to my domain-name server with the requisite sftp/webDav server and user parameters entered. So I want to know if my Gambas program can do a similar thing?
Some places to start you journey if you want to use ftp (as seen on your posted screenshot):
- https://gambaswiki.org/wiki/comp/gb.net.curl (syntax documentation)
- https://gambaswiki.org/wiki/doc/network (some general info on networking and gambas can be read at)
- https://gambas-buch.de/dwen/doku.php?id ... .2.3:start (practical explanation with example code)

You might find some example applications on how to use ftp (I haven't checked myself) on the Gambas Farm (start IDE for that).
I do use network programming in some of my applications, but so far never used ftp as I rsync my data using SSH and authetication keys.

Some general understanding of networking, client/server concepts and network protocols like FTP (File Transfer Protocol) will be useful in understanding what you try to achieve.

And if all above doesn't help, we will read it.
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer
- Gambas debian/ubuntu package recipe contributer
- Gambas3 Debian/Ubuntu repositories


... there is always a Catch if things go wrong!
User avatar
Quincunxian
Posts: 193
Joined: Sunday 25th June 2017 12:14am
Location: Western Australia

Re: Simple server connection?...

Post by Quincunxian »

So something like FileZilla ( Non Gambas) might be a good example of the capabilities you are after.
Ian Rendell - u996779414@ianrendell.com - FileZilla_001.png
Ian Rendell - u996779414@ianrendell.com - FileZilla_001.png (217.66 KiB) Viewed 52263 times
The image is a of my remote website - I've wanted to do this in native Gambas for some time but have always chosen the easier (lazy) path of using Filezilla.
Cheers - Quin.
I code therefore I am
User avatar
BruceSteers
Posts: 2067
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Simple server connection?...

Post by BruceSteers »

check out gbftp on the software farm.

FTP involves sending a LIST command to the server socket and reading the results back.

In filezilla when you click a folder on the server you can see all the commands being sent/recived in the log view.
If at first you don't succeed , try doing something differently.
BruceS
Post Reply