CGI Programming with REALbasic and Apache

CGI Programming with REALbasic and Apache

Post by jonhoyl » Fri, 27 Aug 2004 15:16:54


In this month's MacTech, there is an article by Mark Choate called
"CGI Programming with REALbasic and Apache" (p. 46) which is very
interesting, but I have some questions:

1. At one point in the article, Mark writes "In the current version
(5.5.1) there is a bug that causes REALbasic to crash if you try to
access a [CGI Environment] variable that does not exist. This places
some real limitations on what you can do, but it is supposed to be
fixed in 5.5.2." Now that 5.5.3 is out and with 5.5.4 on the way, is
it known that this bug is fixed?

2. I have had a great deal of success building and accessing
Carbon-based Shared Libraries inside of my PEF-based REALbasic
applications. Since CGI's are Mach-O console applications, can I
still access functions from Shared Libraries, or do they have to be
Mach-O based lib's as well? (And what is the Mach-O equivalent of a
Shared Library anyway?)

3. REAL has announced Swordfish and much has been written about it
from various Mac news outlets. Will Swordfish obviate the need for
creating raw CGI's, and should I simply wait for its release?

4. The server I would be writing these CGI's for is a beige G3 running
the aging Mac OS X 10.1 operating system. Do console apps built in RB
5.5.x run okay on 10.1, especially with regard to CGI's?

Thanks in advance,

Jonathan Hoyle
 
 
 

CGI Programming with REALbasic and Apache

Post by suppor » Sat, 28 Aug 2004 08:11:46


We talked here about this crashes and they were fixed as far as I
remember. You can test this easily in a two line test project.


sure. RB contains code to cross the borders between PEF and Mach-O.


a framework or a dylib


Ask REAL.


Any reason for not upgrading to 10.3?
(there are some security fixes which do not exist for 10.1)

Mfg
Christian

--
At Apple Expo in Paris from 30th August to 4th September.

Eight thousand functions in one REALbasic plug-in. The MBS Plugin.
< http://www.yqcomputer.com/ ;

 
 
 

CGI Programming with REALbasic and Apache

Post by jonhoyl » Sun, 29 Aug 2004 04:06:41

> > 1. At one point in the article, Mark writes "In the current version

True. I wasn't going to bother unless I heard, but it sounds good, so
on I go...



If I can stick with building Carbon based Shared Libraries, that's
what I think I'll do.



Yeah, I'd love to go to 10.3, but right now my server is an old beige
G3 which can't go any higher than 10.1. This G3 is also not really
usable for anything other than as a server, so hence its position. In
my next upgrade pass (a G5), I'll demote my current G4 down to being
the server and put the G3 out to pasture.

Thanks for everything.

Jonathan Hoyle
 
 
 

CGI Programming with REALbasic and Apache

Post by jonc » Sun, 29 Aug 2004 18:21:27

> Yeah, I'd love to go to 10.3, but right now my server is an old beige

Hi Jonathan,
You might want to try out XPostFacto, a really handy utility that
allows unsupported machines to run OS X on them. I am currently
running a 9600 (older than a beige G3) with 10.3, and I know from
posts from the XPF newsgroup that many people there have a beige G3.

Good luck, Jonck