Send data from web server to user computer

new BookmarkLockedFalling
rodsweb
New Member
*

rodsweb Avatar

Posts: 6

Post by rodsweb on Mar 10, 2025 18:15:18 GMT -5

Is it possible to write two runbasic progammes, on the web server and one on a user computer, so that data is transferred from one to the other?
As an example I have a Libertybasic program that enables the easy writing of web pages, just use 'word' type instruction to make the page (no html ftp etc.), then click on upload and the page is live on the web (see ecoww.com for example).
Currently I use POST, but that requires 3 or 4 extra clicks, can be difficult for non-programmers, plus recent downgrades to windows means that it now crashes on occasions.
It would be ideal to be able to link (via the RUN instruction) to a runbasic programme on the user computer, and send data to the server where a runbasic routine would load the data (web page) to the server.

carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Post by carlgundel on Mar 10, 2025 19:40:50 GMT -5

rodsweb Avatar
Is it possible to write two runbasic progammes, on the web server and one on a user computer, so that data is transferred from one to the other?
As an example I have a Libertybasic program that enables the easy writing of web pages, just use 'word' type instruction to make the page (no html ftp etc.), then click on upload and the page is live on the web (see ecoww.com for example).
Currently I use POST, but that requires 3 or 4 extra clicks, can be difficult for non-programmers, plus recent downgrades to windows means that it now crashes on occasions.
It would be ideal to be able to link (via the RUN instruction) to a runbasic programme on the user computer, and send data to the server where a runbasic routine would load the data (web page) to the server.

The way that Run BASIC is used is that users connect to the Run BASIC server using their web browser and run an application in the web browser, and that application is written in Run BASIC.

How do you imaging your application would work if you designed it as a web app?

-Carl
Last Edit: Mar 10, 2025 19:48:09 GMT -5 by carlgundel
rodsweb
New Member
*

rodsweb Avatar

Posts: 6

Post by rodsweb on Mar 11, 2025 9:35:55 GMT -5

Thanks for that.
My existing programme is about 4000 lines long and uses lots of graphics so converting to Runbasic is not an option.
I have searched the forum without success. The wiki is sadly dead. What is the wiki format? Perhaps my server could host it?
So two questions.
Firstly Is it possible to open the 'Run Basic Console' and 'launch in browser' from a command line, a LB programme using say the RUN command?
Secondly I have php routines on the server which are called up from the user LB programme. However I don't know how to launch RunBasic on the server. Can you point me in the direction of suitable apache instructions?
carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Post by carlgundel on Mar 11, 2025 11:25:54 GMT -5

rodsweb Avatar
Thanks for that.
My existing programme is about 4000 lines long and uses lots of graphics so converting to Runbasic is not an option.
I have searched the forum without success. The wiki is sadly dead. What is the wiki format? Perhaps my server could host it?
So two questions.
Firstly Is it possible to open the 'Run Basic Console' and 'launch in browser' from a command line, a LB programme using say the RUN command?
Secondly I have php routines on the server which are called up from the user LB programme. However I don't know how to launch RunBasic on the server. Can you point me in the direction of suitable apache instructions?

You launch the RB server and leave it running. Then you 'publish' your Run BASIC program and a user will connect to it like they connect to any web site. Then your program runs in their browser (though it is actually running on the server). You don't then shut down the server when the program is done running. You can have multiple users connected to the server and using programs.

What do your PHP programs do? They probably can be rewritten in Run BASIC and be run on the server as needed. I'm not sure why your graphics cannot be used in a Run BASIC program. Probably they can.

As for the wiki, I'm sure we will be seeing this brought back to life as more work is being done to develop a new version of Run BASIC since January of this year.

-Carl
rodsweb
New Member
*

rodsweb Avatar

Posts: 6

Post by rodsweb on Mar 11, 2025 14:10:56 GMT -5

The php programmes receive the POST transfer, branch to .php in a secure directory, check the uploaded file for the account and password, if OK another-one loads the web page with files, pictures and media files to the web site of the appropriate domain. No user interaction is required apart from browsing to the transfer file then clicking the load button. I would prefer it if the browsing bit and clicking load could be automatic and transparent to the user. The programme to produce the web site is so easy to use (just like 'word' no programming) that the browsing and clicking load has sometimes created difficulties!

You say to "You launch the RB server and leave it running." But I don't have access to the server console, presumably Apache has some way of accepting input and running RunBasic, whether it can then launch a browser I don't know, also don't quite know where to start looking.

The LB programme uses a few .dll's. They may not run the same in RunBasic
jpgdll.dll
lbbrowse3.dll
LBRTF2.dll
vbas31w.sll
vgui31w.sll
voflr31w.sll
vthk31w.dll
vtk1631w.dll
vtk3231w.dll
vvm31w.dll
vvmt31w.dll
image323.dll
Thanks for your comments, and we really appreciate your programmes.
Last Edit: Mar 11, 2025 14:14:18 GMT -5 by rodsweb
carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Post by carlgundel on Mar 11, 2025 18:31:31 GMT -5

rodsweb Avatar
The php programmes receive the POST transfer, branch to .php in a secure directory, check the uploaded file for the account and password, if OK another-one loads the web page with files, pictures and media files to the web site of the appropriate domain. No user interaction is required apart from browsing to the transfer file then clicking the load button. I would prefer it if the browsing bit and clicking load could be automatic and transparent to the user. The programme to produce the web site is so easy to use (just like 'word' no programming) that the browsing and clicking load has sometimes created difficulties!

You say to "You launch the RB server and leave it running." But I don't have access to the server console, presumably Apache has some way of accepting input and running RunBasic, whether it can then launch a browser I don't know, also don't quite know where to start looking.

The LB programme uses a few .dll's. They may not run the same in RunBasic
jpgdll.dll
lbbrowse3.dll
LBRTF2.dll
vbas31w.sll
vgui31w.sll
voflr31w.sll
vthk31w.dll
vtk1631w.dll
vtk3231w.dll
vvm31w.dll
vvmt31w.dll
image323.dll
Thanks for your comments, and we really appreciate your programmes.

You already have a solution that works, and it is written in PHP and Liberty BASIC?

Run BASIC does not use those DLLs, and currently Run BASIC cannot use any third party libraries, but that will come.

You say that you do not have access to the server? Someone else does that part?
rodsweb
New Member
*

rodsweb Avatar

Posts: 6

Post by rodsweb on Mar 11, 2025 19:23:46 GMT -5

Yes the web site writing prog works well, but I am always looking for possible improvements, and also recent downgrades to windows means that it now crashes on occasions at the POST instruction.
It is written in PHP (just for the data transfer user to server) and Liberty BASIC.
Access to the server, yes I have access, but have never had to start running programmes on it, so I don't know how. (the html and php are simply stored on the server, and run when a browser accesses them).

Thanks again.