Search found 551 matches

by owen
Sep 06, 2019 13:47
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

here is a link to my latest
https://www.fbcadcam.net/forum/viewtopic.php?f=19&t=426

i decided to use cgi perl to shell out to the interpreter (instead of php)

i don't think i'm smart enough to experiment with fastcgi on my rented bluehost server without totally messing things up.
by owen
Aug 25, 2019 17:53
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

by box u mean for example on my laptop so i can dev and test...
and i guess also i would need to install the library on the server or maybe it's already on the server... something like that.
by owen
Aug 25, 2019 17:19
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

#INCLUDE ONCE "fastcgi/fcgi_stdio.bi"

fastcgi is a library included with freeBASIC?
by owen
Aug 25, 2019 17:03
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

of course the idea of figuring out how to hello world on a server (for me) is all about figuring out how to run a server side script engine (that interprets fb code...) and it is working (kinda) but i have a long long way to go with my fbs project
by owen
Aug 25, 2019 16:55
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

my interpreter was poorly designed and it only supported up to 9 1d, 9 2d and 9 3d arrays of all standard fb types ie. byte, ubyte, integer, uinteger, string etc... i wrote this little interpreter before i really know anything about udt's and thanks to paul and fxm i now know a bit more so now i am ...
by owen
Aug 25, 2019 16:46
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

at the moment i am working on my little interpreter so i can use more then 9 1d arrays so i can do stuff like this Declare Sub init(document_title As String, doc_type() As String, document_type As UByte, html() As String, head() As String, title() As String, body() As String) Declare Function build_...
by owen
Aug 25, 2019 16:42
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

The direct way is to compile your code against the fcgi library and let the web server directly call your binary. that would really be something if i could learn how to do that and be done with php entirely. i just took a peek to find out what fcgi is: guess it stands for fast cgi ... i will look i...
by owen
Aug 24, 2019 16:58
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

My goal was to figure out how to Hello world on a server in linux so that i could ultimately do some fun stuff like fbs. Thanks to the FB community for helping me along my adventure. To know more about my fbs, links to the project are at https://www.fbcadcam.net/forum/viewforum.php?f=19 In summary: ...
by owen
Aug 24, 2019 10:44
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

check it out http://fbcadcam.org/fbs/fbs.php fbs.php <?php $output = shell_exec("./fbs"); echo "<pre>$output</pre>"; ?> calls (runs) fbs which interprets / runs test.bas test.bas dim as integer i for i = 1 to 10 print i print "this is a test of fbs" next
by owen
Aug 24, 2019 4:24
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

That binary was compiled using centos on my laptop. Next I will try to compile it using ubuntu and see if it runs on the server
by owen
Aug 24, 2019 4:19
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

Oh and I'm not using cgi. The binary is in the same folder as the php and source code
by owen
Aug 24, 2019 4:15
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

Well I couldn't get it to work on shared hosting. So I got a vps
by owen
Aug 23, 2019 5:55
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

Next test...
Try to compile on a vps
...
I get segmentation fault core dumped just running fbc
by owen
Aug 23, 2019 4:24
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 10269

Re: Is it possible to Hello world on a server

Eureka

Go to advanced search