On 2012-04-15 04:02, Johnny Billquist wrote:
On 2012-04-15 02:57, Brian Hechinger wrote:
On 4/13/2012 12:13 PM, Johnny Billquist wrote:
On 2012-04-13 16:44, Mark Benson wrote:
On 13 Apr 2012, at 15:11, Johnny Billquist <bqt at softjar.se
<mailto:bqt at softjar.se>> wrote:
On 2012-04-13 16:03, Mark Benson wrote:
I'm sure we could work something out. Do you have some experience with
web servers? I have one or two questions that you might help me
with...
Also, you could do some work on MIM, where the stack and tools are
already in place...
I work on AMP (apache/MySQL/PHP) for a living. I wouldn't ever claim to
be an expert on web servers but I know how apache works and where to
look up what I don't know ;)
Ah. Hmmm. I'm not sure how much that knowledge helps here, but maybe
it might be a good start anyway.
Right now, there is nothing like the CGI interface of Unix
web-servers. It might be something we could look at. The basic concept
of kicking off a subprocess, and using the output as the result is
nothing difficult. More tricky is the question of how to pass
information that in Apache and others are passed as environment
variables. Need to think about that one.
Scripting... Nothing exist yet. You could use IND, I guess, but it's
nothing like PHP. Also, no connection to any database as such from
IND. Using a HLL, like BASIC, you can always play with RMS, which
gives you lots of features. Or you could also go to Datatrieve...
I'd have to dust the cobwebs out of my brain, but I wrote a pretty
trivial web server years ago so I'm somewhat familiar with how that
works. It wasn't fancy and didn't do CGI or anything but I just might be
of some use, who knows! :)
If you have any questions let me know and I'll see what I can do.
It seems the web server is serving pages and jpegs now. Paul Konig
reported some kind of problem viewing my jpeg, so if people can report
the success/failure of that, it would help.
Otherwise, I'm about to extend it to be able to grab pages from peoples
home directories. Once that is done, people can try adding their own
pages on MIM, and we'll see what happens...
But the code is very small. The whole thing is 22 blocks of source code
so far. All in BASIC+2. Should be very easy to follow code. Basically
MIM::DU:[HTTPD]*.B2S. It's split into 7 files at the moment.
By the way. If anyone have any nice ideas, interesting approaches, or any comments on CGI
interfaces, I'd be interested in hearing about it.
Being able to create dynamic web content would be nice, but I don't know how I should
pass information in to the application. As far as I knpw/remember, Unix web-servers do
this by setting up environment variables.
I guess it would perhaps be possible to use logical names in a similar fashion, but I fear
that multiple tasks might interfere with each other in this usage. Also, logical names
have length restrictions, which might be limiting. How long could I expect header names
and values to be?
Hmm, putting it all in some file, that can be read?
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic
trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" -
B. Idol