Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

Basic CGI Script

You can write a CGI script (a program that runs on your server) to download your journal and then spit it back out to your clients. You could write a CGI script like this in any language, but by far the easiest language would be Perl, mostly because just about every hosting provider supports it.

Explanation

The client will never see www.blurty.com, because your server is actually the one that's downloading it.

Note

This example uses the LibWWW module for perl, which you may need to install on your server, or have your admin do it.

#!/usr/bin/perl

use LWP::Simple;
print "Content-type: text/html\n\n";
print get('http://www.blurty.com/customview.cgi' .
          '?username=username&styleid=101');

Server Side Includes and CGI

If you already have some existing content that you don't want to modify and you just want your Blurty inserted into an existing HTML document on your server everytime a client requests it, you can create the CGI script in the previous example and then place the example below into a server-parsed HTML document.

Note

To get an HTML file to be server parsed, you usually have to name it .shtml, or set its execute bit; it depends on your webserver and how it's configured. In order to figure that out you might need to talk to your sysadmin.

<!--#exec cgi="/cgi-bin/blurty.cgi" -->

*

<< Back to the embedding page

© 2002-2008. Blurty Journal. All rights reserved.