• Gay Industry Networking – The Gay Boards

    Date: 2011.02.22 | Category: Promotion | Response: 0

    Gay Industry Networking – The Gay Boards.

    With so many ways for webmasters marketing straight sites in the adult industry to network I started to look at the various alternatives available to those webmasters who market gay sites to network and, although there are a few different ones about, they still seem to be few and far between.

    So What Boards Are There For Gay Webmasters?

    Presently, to my knowledge there are four dedicated gay boards that webmasters can utilize for networking purposes in the adult industry with several straight orientated resource sites having a gay board also these are as follows:

    The Gay Boards:

    Rock Me Hard
    Triple X Gay
    Gay Webmaster Chat
    Gay Wide Webmasters

    The Straight Sites With Gay Boards:

    Ynot Gay Board
    Xbiz Gay Board

    Obviously my favorite is The Gay Board at Gay Wide Webmasters but i am slightly biased towards that seeing as its one that we own privately however, the other boards are almost certainly worth a visit in addition to the GWW community forums.

    So what do these gay boards offer those marketing to the gay surfer that the straight boards cant? Simply put, it can offer you a place to network without fear of ridicule from your colleagues and peers in addition you will find that a lot of these gay boards have a wealth of information about the gay market being posted on them on an almost daily basis.

    It is also worth mentioning however that just with the numerous straight orientated message boards, the gay boards do have their own individual feel to them, for example, Rock Me Hard is what I would personally classify as a ‘fun’ board and Shelmal does a great job keeping the spirit of the board going likewise, Gay Webmaster Chat is more a board geared towards webmasters who operate traffic sites such as TGP’s and Link Lists which becomes apparent after reading a few threads. Gay Wide Webmasters is more a board with a wide reach but, primarily, it is a business orientated gay webmaster community and Triple X Gay, because it is fairly new is still, imho, trying to identify the direction it wants to take but non the less, a lot of the forum members posting there also post on GWW.

    The Gay Board – An Overview.

    When all is said and done, no matter whether you are gay, straight, black, white or any other demographic, focusing your attention to one type of board can become counter productive after a while, I mean how often can you hear from the same people over and over again before being given the same information again and again? Diversify your posting activities to include some of the gay market community forums and at the same time, you will also diversify your business knowledge which, im sure you will agree, is good for everyone, especially you and your bank account.

    Article written by Lee

  • Why Go Adult?

    Date: 2011.02.21 | Category: Hosting | Response: 0

    When choosing a hosting company why choose an adult host over a mainstream one?

    Simple, They provide above other things, a better quality of service, affordability and, most importantly, reliability.

    Adult hosts face a variety of technical and support issues, this coupled with the points mentioned above makes them a far superior choice to standard mainstream hosting providers. This is one of the main factors why more and more mainstream internet based companies are now turning to the adult business forum to provide their hosting solutions.

    Mainstream going adult? Yes that’s right, more and more mainstream companies are turning to our industries hosting providers for the fast speeds, security and, reliable infrastructures they can offer after all, adult sites are amongst the most prolific on the internet on average gaining more daily hits to their sites than mainstream websites so, they need to be cost efficient, not only to the hosting companies but, also to their clients, the webmaster.

    Our industry strives on the use of heavy graphics, coupled with streaming media files to secure sales and longevity, this is why the adult hosting companies need to be able to provide not just a single, heavily laden server but tens of them, sometimes even hundreds all producing gigabytes of traffic on a daily basis.

    Adult hosting companies are constantly upgrading their equipment in order to improve not just their servers, connectivity but also the smaller things that are often overlooked by webmasters, hubs, routers, switches and the likes along side the not so technical aspects of running a host, The staff.

    Along with all of this technical equipment they also need to maintain a high level of technical knowledge, after all, not just anyone can install operating systems capable of running multi-million dollar industries. They need the knowledge to maintain, upgrade, repair and sell their services to the best of their capabilities.

    What does this mean to you? Well, we all want to make money and, through the use of faster servers, e-commerce solutions and the technical support your hosting provider can give you, you will be fattening your wallet on a daily, weekly, monthly basis.

    Adult hosting, quite simply, is the crème de la crème of the hosting world, they offer solid, solutions whether you are starting in the adult industry or, operate a mainstream e-commerce site.

    So how do you choose a host that is right for you?

    You need to ask some basic questions of the host and, do your homework. Not only should you find out what hosting solutions they can offer you but, you need to find out what their support service is like, how affordable they are in comparison to other companies who can offer similar or the same service. Whilst on the subject of hosting support, before you sign on the dotted line, give your host a call out of office hours, if they answer, then you can almost be certain they are a good hosting provider.

    Of course, not all hosts will have 24 hour phone support, however, that said, some offer 24 hour icq support, email support and more.

    Another sure fire way to find out if a hosting company is any good is to ask on the heavily traveled webmaster message boards, after all, you are not the only webmaster out there who will have tried this company, if they are no good, someone will know about it and point you in the direction of a reputable host like http://www.webair.com.

    Hopefully, this article will have given you some insight into the world of adult hosting companies and, will assist you in making the right choice of host for your site, whatever type of website you might be hosting.

    Article Written By Lee

  • Marketing Sites With Slogans

    Date: 2011.02.22 | Category: Promotion | Response: 0

    With the constant changes happening in the adult industry webmaster need to look towards alternative ways of marketing not only their own sites but the sites of their sponsors. This is where something that we have all seen daily can come in handy, what is this marketing tool? Simple, Slogans.

    Slogans – What Are They?

    A slogan is a short, memorable advertising phrase for example, ‘Just Do it’ – Nike. By utilizing a slogan on your site you are not only giving your surfers something other by which they can remember your site by but, you are actively building up your brand which, in turn, can mean more repeat traffic and ultimately, more sales.

    How To Make A Slogan.

    So now you know what a slogan is how do you go about creating one? Simple, you should think of something short, usually three to four word slogans work the best again, as with the Nike example above ‘Just Do it’ its short, sweet and memorable, try to make your own slogan fit within this guideline and you are half way done. Another thing that you may like to consider is making your slogan practical or humorous, something witty can often stay in a persons mind a lot longer than something serious, play on peoples memory and ensure they remember your brand.

    Where To Use Your Slogan.

    Now that you have thought up a slogan which you feel will work on your traffic and sites you need to consider the places where you can use it for maximum impact, the most obvious place to use your slogan is on your site design, either at the top or the bottom of your pages, make it clear and more importantly, make it stand out. In addition, if you have any banners or buttons created, ensure you utilize the slogan on those creatives, the goal is to have your slogan seen by as many people, as quickly as possible.

    Article written by Lee

  • The Lost Traffic Source – Picture Posts

    Date: 2011.02.24 | Category: Pic Posts | Response: 0

    Back in the day, pic posts were all the rage, taking less time for webmasters to build for and, less time maintaining however, in recent times we seldom hear of these traffic sources as more and more webmasters turn to the TGP’s in an effort to get traffic ‘quantity’ over ‘quality’ my personal feelings are that the pic posts of the past will soon start to make a comeback.

    The Basics.

    So, we know the history behind the Pic Post but what about the dynamics? How exactly do they work? That’s easy, you take an image, give it a HTML page and add the recip to the PP (Pic Post) you are submitting the page / image too along with a banner leading to your site. At this time, it would be prudent to add that, if you will be submitting to PP’s on a regular basis, you might also like to add the url to your main domain on the image in the lower right or left hand corner.

    One other thing to take into consideration when using PP’s is that softcore is often better. With the readily available hardcore content on TGP’s the chances are, that the surfer has decided to visit the PP because there is not as much widely available hardcore content.

    Cost Balance.

    In addition to the relatively minimal amount of work required to create pages for the PP’s there are several other factors that make them much better then TGP’s and Free Sites the main one is that bandwidth usage is relatively low for a start, not to mention the fact that you can knock out hundreds / thousands of PP pages a day compared to the tens / hundreds of TGP and Free Sites.

    Also, when looking at cost, the one factor people often forget is the submission time and, unlike the TGP model of traffic the vast majority of PP’s will actually encourage or, in some instances, prefer automated submissions, this means that you can target hundreds of PP’s in less time than it takes to submit a TGP or Free Site.

    Marketing Basics.

    Of course, as with any type of site that we build as webmasters, the main reason that surfers will visit our sponsors is the marketing ‘spin’ we give them, this is where the use of Alt Tags and Text can become extremely useful, bearing in mind, the surfer can already see the ‘larger picture’ on your PP page by utilizing Alt Tags and other SEO methods you can actually entice the surfer to click through to your sponsor and, get some very good rankings in the search engines at the same time.

    Housekeeping.

    Now you have started to use Picture Posts, as with any form of traffic you need to ensure you keep ‘accurate’ records of who is and who isn’t accepting your pages along with details stats on the amount of traffic each PP sends you and, you ultimately send off to your sponsors site.

    Adjust everything you can. trial and error plays a MAJOR part in using PP’s just because you use softcore images one day and get 1000 hits to the page you created, that doesn’t mean that by using hardcore images the next day you will receive more or, less traffic, also being niche specific, unlike with the TGP game can have its disadvantages, use images that appear at first glance, to be ‘generalized’ then, over time adjust your advertising methods to reflect the niche of surfer you are targeting.

    In addition to keeping records of the pages you create for the picture posts, you should also be sure to keep a record of where else you have used them, just because you are using them for the PP’s specifically, this doesn’t mean that you can not interlink these pages together and get some traffic of your own to them, does it?

    Hopefully this article has given you some more insight into the world of the Picture Post and, if you try an experiment with this little known source of quality traffic, I feel certain you will be pleasantly surprised with the results you see.

    Article written by Lee

  • Cascading Style Sheet Basics

    Date: 2011.02.21 | Category: WebDesign | Response: 0

    CSS (Cascading Style Sheets) have been around for a while now, and act as a complement to plain old HTML files.

    Style sheets allow a developer to separate HTML code from formatting rules and styles. It seems like many HTML beginners’ under-estimate the power and flexibility of the style sheet. In this article, I’m going to describe what cascading style sheets are, their benefits, and two ways to implement them.

    Cascading What’s?

    They’re what chalk is to cheese, what ice-cream is to Jell-O they complement HTML and allow us to define the style (look and feel) for our entire site in just one file!

    They get their name from the fact that each different style declaration can be “cascaded” under the one above it, forming a parent-child relationship between the styles.

    They were quickly standardized, and both Internet Explorer and Netscape built their latest browser releases to match the CSS standard (or, to match it as closely as they could).

    So, you’re still wondering what a style sheet is? A style sheet is a free-flowing document that can either be referenced by, or included into a HTML document (Kind of like using SSI to call a file but not, if that makes sense). Style sheets use blocks of formatted code to define styles for existing HTML elements, or new styles, called ‘classes’.

    Style sheets can be used to change the height of some text, to change the background color of a page, to set the default border color of a table the list goes on and on. Put simply though, style sheets are used to set the formatting, color scheme and style of an HTML page.

    Style sheets should really be used instead of the standard , < b >, < i > and < u > tags because:

    One style sheet can be referenced from many pages, meaning that each file is kept to a minimum size and only requires only extra line to load the external style sheet file

    If you ever need to change any part of your sites look/feel, it can be done quickly and only needs to be done in one place: the style sheet and furthermore, it is done globally.

    With cascading style sheets, there are many page attributes that simply cannot be set without them: individual tags can have different background colors, borders, indents, shadows, etc.

    Style sheets can either be inline (included as part of a HTML document), or, referenced externally (Contained in a separate file and referenced from the HTML document). Inline style sheets are contained wholly within a HTML document and will only change the look and layout of that HTML file.

    Open your favorite text editor and enter the following code. Save the file as styles.html and open it in your browser:

    Cascading Style Sheet Example.

    h1
    {
    color: #636594;
    font-family: Verdana;
    size: 18pt;
    }

    This is one big H1 tag!

    When you fire up your browser, you should see the text “This is one big H1 tag!” in a large, blue Verdana font face.

    Let’s step through the style code step by step. Firstly, we have a pretty standard HTML header. The page starts with the tag followed by the tag. Next, we use a standard tag to set the title of the page we are working with.

    Notice, though, that before the tag is closed, we have our tag, its contents, and then the closing tag.

    h1
    {
    color: #636594;
    font-family: Verdana;
    size: 18pt;
    }

    When you add the style sheet code inline (as part of the HTML document), it must be bound by and tags respectively. Our example is working with the tag. We are changing three attributes of the ’s style: the text color (color), the font that any tags on the page will be displayed in (font-family), and lastly, the size of the font (size).

    The code between the { and } are known as the attributes. Our sample code has three. Try changing the hexadecimal value of the color attribute to #A00808 and then save and refresh the page. You should see the same text, just colored red instead of blue.

    An Example Of An External Style Sheet.

    External style sheets are similar to internal style sheets, however, they are stripped of the and tags, and need to be referenced from another HTML file to be used.

    Create a new file called “whatever.css” and enter the following code into it:

    h1
    {
    color: #a00808;
    font-family: Verdana;
    size: 18pt
    }

    Next, create a HTML file and name it test.html. Enter the following code into test.html:

    External Style Sheet Reference Example.

    This is one big H1 tag!

    As mentioned above, you can see that the actual code in whatever.css is exactly the same as it was in the inline example. In our HTML file, we simply place a tag in the section of our page. The rel=”stylesheet” attribute tells the browser that the link to the external file is a style sheet. The type=”text/css” attribute tells the browser that whatever.css is a text file containing CSS (cascading style sheet) declarations. Lastly, the href=”whatever.css” attribute tells the browser that the actual file we want to load is whatever.css.

    Conclusion.

    Well, there you have it, a quick look at style sheets and how to implement both an inline and external version. Checkout the links below if you’ve never worked with cascading style sheets before. You will be surprised at some of the things you can do with them!

    Article written by Lee.

  • Filtering Adult Traffic For More Sales

    Date: 2011.02.22 | Category: Traffic | Response: 0

    When webmasters build sites there seems to be the train of thought that just because they use one of the top converting sponsors site they will make sales regardless of what type of traffic they are sending.

    Unfortunately, this is often not true.

    One of the first steps that we should take as webmasters when it comes to creating a new site, whether it be a free, avs or a TGP site is to learn the art of targeting our sponsors tour with the content and, more importantly, the traffic we are going to use.

    taking it to the simplistic levels, a straight teen sponsors wont convert on a site that gets mostly mature traffic, the niches, although complementary, are so far apart its unrealistic.

    That said, lets take a look at some options we can all implement on our sites to better target and filter our traffic to ensure optimum conversions.

    One of the simplest ways to target and filter your traffic is to build yourself a hub or a surfer trap. Of course, we also have to take into consideration the type of traffic we are currently receiving to our site and, that we ‘could’ receive in the future.

    Just because we receive 10,000 hits to our teen TGP doesn’t mean that ALL of that traffic IS looking for a teen site, this is where our surfer trap or hub site can come into play.

    Even if your main focus is the teen niche, you should make sure that the first thing the surfer see’s when visiting any type of site you build is a multi-site FPA (Full Page Ad) where applicable.

    This then starts your filtering process. If they know that they can find other niches than teen on your TGP then chances are, they will go to them either because that is what their niche is or, they are curious about that niche.

    Another thing we can do as webmasters is to ensure we use the headers and footers of our pages in the proper fashion, offer our surfers a choice of the main niches, Asian, Gay, Ebony, Teen, Ect using only text links and, you will probably find that by lining these text links to your hub or surfer trap that you actually have a diverse range of traffic available to you.

    In addition, rather than sending our surfers directly to our sponsors, send them via a filter page whether this is an FPA, or a page full of text links you made yourself detailing the benefits of the sponsor you are going to send them to, again, you will let the surfer know where they are going and, give them a choice as to whether they want to continue to that site or, choose an alternative.

    Overall, webmasters who target their surfers by niche can, for the most part have some excellent sales with a variety of sponsors that otherwise they would not be able to see.

    Target, Filter, Micro-Niche, however you do it, make sure your traffic is not wasted and, more importantly, make sure your sponsor is able to offer your surfer what you are telling them is inside the site.

    Article written by Lee

  • Utilizing All The Content You Use On TGP Galleries!

    Date: 2011.02.24 | Category: TGP | Response: 0

    Utilizing All The Content You Use On TGP Galleries!

    For the last few months i have been experimenting with a few new (but old, if ya see what i mean) ideas.

    Basically i have adapted Voltars 3x3x3 project slightly and incorporated it into the TGP/TGP2 game.

    The results have given me some of the best sales ratios ever! We’re talking under 1:60 almost consistently across all sponsors!!

    What you did is thus….

    Design a NICE 15 pic tgp gallery in a table preferably four rows high and 5 columns across.

    In the first row place one thumb in each cell (5 pics).
    In the second row place one odd sized banner in the first cell and merge cells 2,3 , 4 and, 5.
    In the cells you have merged place some descriptive text about the pics you are using in under two paragraphs and include a line of text where you MENTION the sponsors site name.
    In row 3 place one thumb in each cell (5 pics).
    in row 4 place on thumb in each cell (5 pics).
    under the table place a juicy text link.
    below this juicy text link leave a line or two and add a money bar (one row by three columns using a contrasting color to the background of your gallery page).
    ALL pics go on html pages using the same layout as your main TGP page but, without the table included.
    Repeat this process 4 times once for four different niches, saving each niche in their own sub folder for the main site i.e:

    url/sub folder/niche 1
    url/sub folder/niche 2
    url/sub folder/niche 3
    url/sub folder/niche 4

    You should now have 4 TGP galleries using 15 pics on each in four niches (60 pics in total).

    At the top of each of these main pages place a three cell one row table.

    in this table use text links to describe each niche i.e:

    Teen
    Gay
    Lesbian
    Mature

    in the template for the teen niche you use text for the gay, lesbian and, mature templates and link these to the appropriate TGP template.

    This is where the fun begins…..

    Take all four TGP niche galleries you have just made and do the following….

    Delete the first row of cells (including pics) on all TGP galleries and save the new page layout in another folder using the same navigation structure as the original ie:

    url/sub folder 2/niche1
    url/sub folder 2/niche2
    etc
    etc

    You should now have the following:

    four TGP templates consisting of 15 pics each.
    four TGP templates consisting of 10 pics each.

    Again, link these new 10 pic templates to each other in the same way as you did the 15 pic templates.

    Repeat this procedure to make the 10 pic TGP page using the original TGP page BUT, this time, delete the bottom row of cells.

    You now have the following:

    4 niche 15 pic TGP pages
    4 niche 10 pic TGP pages
    ANOTHER 4 niche 10 pic TGP pages

    Still with me?

    Its gets better….

    Take your original 15 pic TGP template and do the following…

    Delete the first and the third row of cells including all the pics and save them in ANOTHER folder using the same structure as before i.e:

    url/sub folder 3/niche 1
    url/ sub folder 3/niche 2
    etc
    etc

    Again link these in the same way as before using the text links at the top of the pages.

    What do you have now?

    4 TGP pages using 15 pics
    8 TGP pages using 10 pics
    4 TGP2 pages using 5 pics

    Can you guess what’s next?

    Take that original template again and…

    Remove the first and fourth row of cells do the same when you save it as you have done above…

    What do you have?

    4 TGP pages using 15 pics
    8 TGP pages using 10 pics
    8 TGP2 pages using 5 pics

    Do it once more using the original templates but removing the final set of 2 rows of cells you now have…

    4 TGP pages using 15 pics
    8 TGP pages using 10 pics
    16 TGP2 pages using 5 pics

    In the root of the domain where you are going to upload these pages do the following…

    Create a simplistic warning page… link this to a multi site FPA… this multi site FPA links to each of the niche (15 pic) TGP templates you have made.

    On this same fpa place an email erotica collection box, banner exchange code and a toplist counter code along with an exit console going to a MC POTD program.

    Now, what you need to do is start submitting these pages to the TGP/TGP2’s submit one a day or as many as you can until you have submitted them all.

    Ok still here?

    Next you have to duplicate ALL of the above again.

    Place the duplicate of the above into a separate set of folders/sub domains etc.

    On the new root you have created, link to another multi site FPA AND the first root index.html page.

    You now have the makings of an EXCLUSIVE 3x3x3 TGP hub which, you can leave alone and submit all of the pages intermittently to any TGP/TGP2 you wish for LIFE!!

    All the time you are adding new sections to it and building your link pop in the search engines because you are continually interlinking to each of the separate niche and relevant sub niche folders.

    Of course, you NEED to get the meta’s sorted on the first main template for this to work but, if you change all subsequent meta descriptions etc you’ll have a very reasonable listing in Google for the relevant search terms :)

    Article written by Lee

  • Quick Loading Pages Plus Saving Bandwidth

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Have you noticed how many of the sites out there are trying to make themselves look better than they actually are by using heavy graphics and media files? The fact of the matter is this, most surfers who visit your we pages are viewing them on a screen that is between 15 and 19 inches wide, can only see 216 colors and, are on a connection of 33.6 kb per second (If they are lucky).

    What Does All This Mean?

    What does this mean to you as a webmaster? Simple, try this test.

    Connect to the internet on a 33.6 connection, type in your url and, hold your breath. Does the page load before you need to start gasping for air? If so then you are designing your sites correctly, if not, your pages are far to big in file size.

    I’m pretty sure that some of you can hold your breath for a long period of time so, here is a basic rule of web design. Your pages should, be no larger in file size than 50k in fact, I would even go so far as to say try getting your pages under 30k in size.

    How Can I Get It Under 50K? 30K?

    First, all your graphic images should be as small as possible. Try to get them smaller than 4k. Going up to 6k is reasonable. When designing a graphic for the web site keep in mind the number of colors being used.

    I know, from designing banners myself, it was hard for me to go from millions of color to only 216. Yes, 216 is the number of colors you have on a web safe color pallet.

    Use solid colors when designing your image. PhotoShop has made the gradient such a popular tool. It looks good to fade things in and out. I always see a background border made up of this gradient. I always right click on that image to see the size. The 8k-12k is not worth the space. The problem with the gradient is it uses many colors and dithering. Both take up big time K. The more color you have in an image the bigger it’s going to be.

    Use design more, graphics less. For a web page to be successful it needs to download quickly and look good.

    Here is the dilemma download quick or look good? Instead of designing graphics and taking pictures and turning them into jpgs to make your web page look good, try using color schemes. Use cell colors to make borders. Use the negative space on your web site. What is not there is just as important as what is there.

    Remember sometimes less is more. When in doubt think of a typical visitor coming to your web page. Would that extra graphic sell them or keep them coming back again and again. If the answer is yes, by all means keep it. If the answer is “well maybe” or “it just looks good there”, yank it.

    Your surfers will appreciate not waiting more then they have to. The web is here to make our life easier not to sit in front of a screen waiting for heavy web pages to download.

    Article written by Lee

  • Cleaning Up The Myths On Scrubbing

    Date: 2011.02.21 | Category: Billing Solutions | Response: 0

    Time and time again on message boards I see the same old topics regarding scrubbing usually preceded by some company being accused of scrubbing their webmasters surfers to much and the webmasters sales being lower because of the sponsor ‘scrubbing’ their surfers however, the reality of this is, it isn’t the sponsors who control how much or how little the surfers credit card transactions are ‘scrubbed’.

    The E-Commerce Dilemma.

    Irrespective of whether you are an online bookmaker, bakery or adult pay site owner the fact of the matter remains that only credit card fraud is on the increase and, in addition to the rise of online credit card fraud the methods in which the perpetrators of these crimes carry them out is also changing often combating the methods put in place by the online transaction processors to stop this happening luckily however, this is where ‘scrubbing’ comes into effect.

    So What Is Scrubbing?

    Scrubbing is a method used by the credit card processor that the companies who’s site you are sending a surfer to uses. Scrubbing is in effect, a method of calculating the probability that any single transaction (or group of transactions) could be fraudulent. That is to say, is being carried out by someone other than the true owner of the credit or debit card.

    Scrubbing is probably the single most useful tool provided to our sponsors by the credit card processors to ensure that every transaction that gets sent to them is credible and, once the transaction is allowed (or not) a part of the information contained with the transaction is sent to a central database to help other clients of that processor guard against receiving unlawful transaction purchases.

    How Does Scrubbing Affect Me?

    As a webmaster, believe it or not, scrubbing is actually a good thing for you. You know that each transaction processed is first of all a legitimate one and, secondly, you know that the sponsor who you are using is not going to go bankrupt due to excessive illegal transaction. This means that the sponsor can improve the services they offer YOU as a webmaster to assist you in making more money.

    In essence, the scrubbing of credit card transactions at a sponsors level increases the amount of money you make long term not only with that individual sponsor but, with every other sponsors who uses the same transaction processor.

    Article written by Lee.

  • What On Earth Is CGI?

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Let’s unlock a little bit of the mystery about something called CGI. If it helps any, CGI means Common Gateway Interface.

    This is a method which is used to swap data between the server (the hardware and software that actually allows you to get to your web site) and a web client (your browser). CGI is actually a set of standards where a program or script (a series of commands) can send data back to the web server where it can be processed.

    Typically, you use standard HTML tags to get data from a person, then pass that data to a CGI routine. The CGI routine then performs some action with the data.

    Some of the more common uses of CGI include:

    Guest books – The CGI routine is responsible for accepting the data, ensuring it is valid, sending an email acknowledgement back to the writer, perhaps sending an email to the webmaster, and creating the guest book entry itself.

    Email Forms – A simple CGI forms routine just formats the data into an email and sends it back to the webmaster. More complicated routines can maintain a database, send an acknowledgement and validate data.

    Mailing List Maintenance – These routines allow visitors to subscribe and unsubscribe from a mailing list. In this case, the CGI routine maintains a database of email addresses, and the better ones send acknowledgements back to the visitor and webmaster.

    A CGI routine can be anything which understands the CGI standard. A popular CGI language is called PERL, which is simple to understand and use (well, compared to other languages). PERL is a scripting language, which means each time a PERL routine is executed the web server must examine the PERL commands to determine what to do. In contrast, a compiled language such as C++ or Visual Basic can be directly executed, which is faster and more efficient.

    Okay, in a nutshell (and greatly simplified), here’s how it works:

    1) You (the webmaster) specify a form tag which includes the name of the CGI routine.

    2) You create HTML tags which retrieves data from your visitors.

    3) Each of the input tags includes a variable name. The data which is retrieved from the visitor (or directly set if the tag includes the “hidden” qualifier) is placed in the variable name.

    4) When the visitor presses the “submit” button, the CGI routine which was specified in the form tag is executed. At this time, the CGI routine “takes control”, meaning the browser essentially is waiting for it to complete.

    5) This CGI routine can get data from variable names. It retrieves the data and does whatever action is required.

    6) When the CGI routine finishes, it returns control back to the browser.

    Some important things to remember about CGI routines:

    You can install CGI routines on your own site if your host allows it http://www.webair.com is an example of a web host which allows for CGI routines. Some web hosts do not allow you to install your own routines but do provide some pre-written ones to you. If these are not sufficient for your needs, you can find a remote hosting service to provide the necessary functions.

    Generally, if you install your own routines they must be installed in the cgi-bin directory of your site. This is a special location which allows scripts and programs to be executed.

    CGI routines work best on Apache-style servers. Windows NT and Windows 2000 does support CGI, but it tends to be slow and problematic.

    If you use a remote hosting service, you must remember that although they appear to be giving you this for free, you are actually paying a price. Usually they want to display advertisements, although some of them actually take visitors away from your site.

    When you write a CGI routine, you have the choice of a scripting language like PERL or a compiled language such as C++ or Visual Basic. Anything which can execute on the web server is acceptable.

    I hope this short introduction to CGI has cleared up some of the mystery.

    Article written by Lee

Premium Sponsors















Categories

Site Links