Reel Media Productions

For everything that's not in any way related to PureBasic. General chat etc...
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Reel Media Productions

Post by Dare2 »

At the foot of pages on www.ReelMediaProductions.com there is the following statement:

"The entire PureBasic Resources Site and all web pages are maintained and generated by a 14kb cgi application written in PureBasic.
Now that's cool !! "

That is very cool.

And very interesting. Does anyone know much about it and would willing to explain it a bit? (No trade secrets, just overview).

For example, does it create html on the fly using rules and dynamic data, or use templates, or use scripting?
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

The CGI was written in PureBasic and compiled to an EXE in console mode. It uses El_Choni's excellent CGI Library for reading and writting the data to the web pages.

The pages are created dynamically "on the fly" and pull information out of a MSAccess database, which contains stuff like User Names, Program Names, Links, Locations, Topics, News, etc.

After a few years of operation the database holding all the data has grown to 800kb but the PB cgi is still the fast and tiny size we have grown to know and love :)


No need for big bloated MySQL databases and fancy Servers using all sorts of scripting languages when these 2 little components do such a good job. (PB cgi + Access DB)
Image Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Hi Paul,

Thanks for the overview. That is impressive. And it sounds like a low maintenance site, so congrats on a good initial design. :)

I haven't looked at the CGI stuff by El Choni - One pretty clued up player! (I'm still going through El Choni's excellent MDI example).

How does it go with handling heavy traffic?

I would assume you have your heavy traffic moments, but I haven't noticed any real delays when I've been on site, and I've been on a few times.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

@Paul

Can this be done in other OS that windows?
ARGENTINA WORLD CHAMPION
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

The Resources Site CGI relies on El_Choni's CGI Lib to talk back and forth with the Server/Browser. As far as I know there is no such tool for the Linux version of PB (although it has been requested many times to Fred that native CGI commands are greatly needed on both WIn and Linux version of PB) ;)
Image Image
Post Reply