• The Curse Of The Broken Image

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    At one time or another we have all done it, uploaded a new site only to find out that when we view the page in our browser one of the images are broken because we either didn’t link it properly or the filename wasn’t named correctly on our server.

    We may think that this is a bad thing however, recent experimentation on my part has found quite the opposite.

    We all search for new ways of getting the surfer to visit our sponsors in order to have them buy a membership and earn us a nice little slice of $$$ in the process but, what methods could we use that quite simply are overlooked?

    One such method is that of utilizing broken images, lets be honest here, no-one wants broken image son their site, it makes the site look unprofessional but, lets think about this, on a page full of banners and graphics all nested together neatly on an FPA (Full Page Ad) what’s more likely to grab the surfers attention, a completely loaded heavy bandwidth graphic or a single solitary broken image placed in a such a spot the surfer actually notices it?

    Makes you think doesn’t it. Our recent testing of this method has actually shown that our CTR (Click Through Ratio) rose slightly on a couple of sponsors we used this method on all of the sites in question had nice looking text and banners with corresponding thumbnails leading tot he full size image but, upon deliberately leaving an image off the server thus resulting in the ‘appearance’ of an erroneous broken graphic the spot where that image should have been was were a great deal of our click throughs came from.

    I am not saying you should immediately go and delete all graphics from you pages but, a single, well placed broken image on a free site can work wonders in getting traffic off your site and to your sponsors pay site tour which ultimately, is what we want to happen at the EARLIEST possible time.

    Article written by Lee

  • Pay Per Click Traffic – More Than One Use

    Date: 2011.02.24 | Category: Paid Traffic | Response: 0

    We all know the stigma surrounding getting traffic to our sites and, this is no different with that of the PPC traffic sources. We have all heard varying stories of success and failure when it comes to this type of traffic whether it be from Googles Adwords program, Overture PPC engine listings or in fact, highly targeted Sex.com adult traffic.

    But how much do we all actually know about maintaining this level of traffic once we actually get it and at a minimal cost to our bank balance?

    First of all there seems to be a belief that PPC traffic should be sent to a sponsor or one of our existing sites, this is all good and proper but, what happens when the sites we own or the sponsors we use don’t convert on this traffic do we just give up? For the most part, yes webmasters do tend to give up and mark this source of unrivalled traffic as a flop.

    Enter the world of traffic manipulation.

    We all know about a variety of programs that are available to drive traffic to our existing sites from banner exchanges like Pornclient to text link exchanges like TextPop even to top lists.

    So why don’t we utilize these when we buy PPC traffic? Quite simply many webmasters forget that traffic can be manipulated regardless of where it comes from initially.

    Lets take a simple listing on sex.com, you fund your account and traffic starts to flow, you get 1000 hits per day for as long as you have funds in your account. Were you aware that this 1000 hits could in fact, become 10,000 hits if we actually thought about our pay per click listings.

    How you may be asking especially with so many rules being levied upon us by the PPC traffic sources? Simple, set up a filter page, on this page you should place a single text link which would be your entry link however, you should also place a few other items on the page this is what i will explain next.

    Ideally you want to be able to use the traffic you are paying for in order to build up a larger traffic base this is where the use of such programs as banner exchanges and the likes come in handy.

    As well as your entry link you should also place a banner exchange (or a text exchange) code on your filter page this will mean that for every visit your page gets from the PPC Engine you are accruing credits towards additional visitors.

    In addition to the link exchange you might also like to consider placing a counter on this page specifically, a toplist counter such as Outster or sextracker so, for every page view you receive you get rated further on their toplist.

    Also, as we are on the subject of top lists why not place a text link to one on this page? Even though you are sending your traffic out you are actually getting sometimes in excess of twice that back depending on the toplist you choose to use.

    Now we have the basics set up we need to look at what else we can do to maximize this traffic, i would suggest having a single console (preferably a blur console) load on this page if the PPC SE allows again, this should contain a link exchange of some description however, you will need to make sure that the account you are using is separate to the one on your filter page.

    Finally, remember the entry link, that shouldn’t go directly to your sponsor instead, send it to an FPA (Full Page Ad) first and, on this FPA place a table ad which is pure text at the bottom again, sending this traffic to a variety of other niche filter pages all set up in the same method as the one we have just made above.

    Hopefully by using these methods your ventures into the Pay Per Click search engine world will be more fruitful than the webmasters not using the above method.

    Article written by Lee

  • JavaScript – Redirecting Foreign Surfers

    Date: 2011.02.24 | Category: Scripts, WebDesign | Response: 0

    At some point or another we are no doubt going to have the need to redirect some or all of our surfers based on the language they speak, this snippet of JavaScript when placed on your page will enable you to do just that without the need for .php or other more complex scripting.

    Here is the coding that you need to place between your <head> and </head> tags:

    <SCRIPT LANGUAGE=”JavaScript1.2″>
    <!– Begin
    if (navigator.appName == ‘Netscape’)
    var language = navigator.language;
    else
    var language = navigator.browserLanguage;

    if (language.indexOf(‘en’) > -1) document.location.href = ‘english.shtml';
    else if (language.indexOf(‘nl’) > -1) document.location.href = ‘dutch.shtml';
    else if (language.indexOf(‘fr’) > -1) document.location.href = ‘french.shtml';
    else if (language.indexOf(‘de’) > -1) document.location.href = ‘german.shtml';
    else if (language.indexOf(‘ja’) > -1) document.location.href = ‘japanese.shtml';
    else if (language.indexOf(‘it’) > -1) document.location.href = ‘italian.shtml';
    else if (language.indexOf(‘pt’) > -1) document.location.href = ‘portuguese.shtml';
    else if (language.indexOf(‘es’) > -1) document.location.href = ‘Spanish.shtml';
    else if (language.indexOf(‘sv’) > -1) document.location.href = ‘swedish.shtml';
    else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';
    else
    document.location.href = ‘english.shtml';
    // End –>
    </script>

    To add additional language redirects to this JavaScript all you need to do is duplicate the:

    else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';

    Section of the coding changing the (‘zh’) language code to that of the language you wish to redirect.

    Article written by Lee

  • Whats A Twink

    Date: 2011.02.24 | Category: General | Response: 0

    I think you would be surprised at the number of times I have been asked, “What’s a Twink?” Or my, personal, favorite “So how do two men have sex?”

    If you know me, you know I am never really bothered by questions – I never mind people’s candor. What does bother me, though, is the bulk of the people who ask are trying to work the gay market. Unsuccessfully, I might add.

    So, let’s expand our webmaster knowledge. Don’t worry, I am not about to explain how two men have sex (that I will save for my story site LOL)

    I have decided, however, to give you a Gay Glossary of sorts. There are many terms that can be included here. But, I thought to start off, we will hit the basics and add to it as time goes on. Keep an eye for future articles and additions on Gay Wide Webmasters.

    Here is a list of the most common terms on the Gay Adult ‘net:

    • Twink – A buff and lean young man; a 20 something. Age and leanness make the guy a twink. The best example is your typical bar room stripper.
    • Teen – This is the same thing as in EVERY market, hot young and under twenty – but LEGAL at 18.
    • Hunk/Stud – Beautiful, built and beefcake. The guys commonly posing for calendars and such.
    • Chubs (or chubby) – Just what it sounds like, a larger man. Not just muscular weight, most often heavy set.
    • Bears – This is a HAIRY man. Not a young guy, most often over thirty, sometimes with a husky build (but not always). You will probably see this niche sold as “Real Men”.
    • Cub – This is a YOUNG hairy guy. Sort of a HAIRY TWINK…
    • Daddies – Daddies are men over thirty, who like younger guys. (Just a side note here to clear up some misconceptions, not all gay men want to do young guys!)
    • Sons – the young male counterparts to Daddies. The young of the two can be a twink, cub or teen – makes no difference. This term is based on the visual couple. For our non-gay friends think of this as an example: the businessman who goes away for the weekend with his NEICE. See the comparison? LOL
    • Transvestite – is a man who dresses as a woman. Whether it is simple underwear or all our female attire. A lot of webmasters confuse this with Transsexual.
    • Transsexual – is a person who has decided to make the complete change and have a sex change.
    • Trans Gender – this is a more general term for people who live life as the opposite sex. They are in the process of, or have completed, a sex change.

    So know go have some fun. Try to classify your friends and lovers in these terms! I enjoy it when a webmistress comes up to me and says, “I heard your interview and I think my husband is a bear. But he’s a little twink-ish. What do you think?” This just makes my day! I have to laugh at the look on their husband’s face when they think I’m going to ask to examine them or something. “Turn you head and cough – OH! You’re a Twink…”

    Along with what works, I have to offer some terms that DO NOT work. If used incorrectly or out of context, then your attempt at marketing to gay men can be dreadful.

    • Faggot – I hate this word, personally. This is a word that is as derogatory to the Gay Community as other words are to a race.
    • Nancy boy – a typically non-US term that basically is used as a derogatory manner.
    • Lil Boys – a derogatory term used primarily in the Southern and Mid-Western US. It’s derived from the negative connotation that gay men are pedophiles.
    • Gay Owned and Operated. Allow me to be blunt – If it is not true, do not say it. This is probably the most OVER used phrase in the gay adult market. So much so, it is relatively meaningless today.

    We all need to remember from time to time, the key to success in any business is knowledge. Whether you are up selling to a sponsor or designing sites, knowing some of the more common terminology in the gay community can only help your ventures in the gay adult market. And remember, do not be afraid to try and NEVER be afraid to ask.

    As always, good luck!

    Article written by Gary-Alan

  • Designing Your Site With Link Popularity In Mind

    Date: 2011.02.21 | Category: Traffic, WebDesign | Response: 0

    To get good traffic, your website needs to be popular, to be popular, your website needs links, to get links, your website needs to be popular. Annoying isn’t it :)

    Almost everyone agrees that link popularity is critical for your website’s visibility, traffic, and thus successfulness. It is something you need to have. As I pondered the ways of establishing and improving one’s “popularity”, eventually all come back to one central issue, your website must be designed to be popular.

    Link popularity is a basically the measure of links pointing to your website and is meant to be a measure of the best websites. Theoretically those websites that have the most links pointing to them must be important and thus worth the visit. Unfortunately, there are a lot of folks out there that have created programs to “boost” your popularity artificially and all they have done is create Spam and muddy the overall picture. The search engines and directories are keeping a close eye on these programs.

    Design: When getting a request or thinking about making one for a link exchange with a website, look thoroughly over the website first. The website’s theme or topic and general layout is the first thing to look at. Sites with themes or topics that are related to or compliment yours should be your main link partners. You do this to get targeted traffic.

    Just as you evaluated someone’s website, others will be doing the same to yours. Make sure you know what your theme or topic is and that it clearly encompasses the whole website. Stay focused; do not try to cover everything.

    Next, check out the links page or resource area. If they do have one, is it easy to find within the site? Does it seem to be part of the site or just a page off to the side? Are their linking rules available, clear, and easy to follow? Do they accept links from any website or are they choosy? Being part of someone’s well constructed links program, no mater what size, can be a very beneficial thing indeed.

    Again, the same goes for your website. You want to let other webmasters know that you want to exchange links and which type of website you will accept requests from. Make it easy for others to link with you.

    The last set of questions to ask yourself about any website is:

    Is it easy to navigate
    Does it have too many graphics (slow loading)
    Is it pleasant to the eye
    Does the information seem to be organized in a logical fashion

    What has been covered so far deals with what the visitors see; if visiting the website is a pleasant experience then people will stay and look and possibly come back. The final area to cover is what the search engines see.

    The underside (the source code) of the website is just as critical when designing or linking with a website. The search engines are the ones that read this and if it is not done properly then the website can not succeed. Below are a few things you need to consider in your source code and any potential site that has asked to be linked by you.

    Does the website contain frames
    Does it use the headers, titles, meta-tags, and alt tags properly
    Do the keyword location(s) and density seem appropriate and “optimized”

    The latter two issues mentioned above are critical, for they are the backbone to traffic production.

    Content: The information you have is just as important as how you set it up on your website. The more popular websites or the ones with good link popularity are those that have valuable information or resource(s) for its audience after all, they fill a niche! People will visit, stay, return, and recommend a website if it has the content they want or need.

    “Content is king.” A well-designed and organized website might look good but if it does not deliver anything of value, it will not be successful. Whatever subject matter you have on your site, make sure you have something of interest and importance to add to the subject, if you do and you promote it well, you and your site will be successful. In this context, it (content) does not just refer to images, why not add some stories or interesting links to news articles to improve your sites ‘popularity’.

    In addition to information, resources like mailing lists, surveys, polls, classified ads, forums, etc. are all things if used appropriately can add value and fresh content to your website which, in turn will assist you in interacting with your sites visitors.

    In conclusion: Take the time to design and optimize your website properly for the search engines. Make sure you have something of value or importance to add to whatever area your website is in. Provide resources and other tools, which your visitors could use and will make them come back. Be proactive and interact with your visitors. Websites that are dynamic and active are the best ones. All of this might take a little more time to get your website up and running, but it will be worth it.

    For yours or any website to be popular, it needs the links and to get the links, it needs to show the other webmasters that it is worthy of a link. It seems everyone today has a website, but not everyone has put together a website that adds value to the Internet community. Take a critical look at your website and any website you might link to and ask yourself…………….

    Would you bookmark it?

    Article written by Lee

  • Mixing Business With Pleasure

    Date: 2011.02.23 | Category: General | Response: 0

    Regardless of your status in the world of web mastering there will come a time when you will want to attend one of the numerous webmaster seminars. However, what should you do to plan for the day you attend your first seminar, are there some things you should aim for and things you shouldn’t? Well in this article we will take a look at planning your conventions.

    Before attending the convention of your choice there are a few things that you should prepare these are.

    Exercise.

    get out for half an hour each day at least two weeks before the day of your journey to the convention. You will be surprised at how much time you will spend walking around the convention floor and, by getting some basic exercise in before hand you wont feel the strain of being on your feet for hours at a time instead of being sat in front of your computer.

    Contacts.

    Make a list of people that you want to see and arrange with them in advance a time to meet up and have a chat. Most people who attend these conventions are busy for the entire course of the show. You may not get a chance to pop by their booth and talk tot hem if someone has already beaten you by booking a time to chat with the person you want to meet. It is also a good idea to trade hotel and cell phone information before leaving for the show, this way, if anything happens to make you miss a possible appointment you can call or leave a message informing them you will either be late or canceling.

    Seminars / Parties.

    Take a look at the events and seminars happening at the convention before you go, plan which ones you will want to attend make a list and take it with you. This will save you countless hours of wandering around aimlessly hoping to make all of the seminars and get to as many parties as you can in three days.

    Booths.

    Look at who is exhibiting at the convention, find out their booth number and make a note of it. List any specific details you may want to speak to the booth owners about. You can guarantee if you go unprepared you will miss out that important question or selling opportunity you wanted to make.

    Baggage.

    When packing your suitcase for the convention make sure you leave plenty of room for convention give a ways, You will be surprised at what you will be given for free at these shows, t-shirts, toys, books, flyers, you name it, you will be offered it.

    So, you have done the pre check, what do you do when you actually arrive at the convention?

    Food.

    Eat at every opportunity you get. Most people will end up not eating for the entire length of the convention. perhaps even arrange to meet up with someone you want to talk to in a restaurant and grab a bite to eat whilst talking business.

    Business Cards.

    Take them and lots of them. Everyone and anyone will ask you for your contact details, if you have a bunch of business cards with you at all times, you can just hand them out. Make sure you include your full contact details, your name, nickname, email, icq and, aim contact details. The more ways you give someone to reach you, the more chance you have of them actually attempting to get in touch with you.

    Clothing.

    Wear comfortable, clothing and shoes. Think casual but, also think business, shorts and t-shirt may be good for comfort but, it doesn’t portray a good business image and, that’s the sole reason you are attending the convention, to do business.

    Parties.

    If you get offered an invite to a party, take it, plans change so quickly at the conventions, your friends may suddenly feel tired and you have nothing left to do, attend a party, then you have another opportunity to network some more.

    Behavior.

    Although the conventions are a fun atmosphere, don’t forget that they are in the first instance a place to do business, treat it as such, you may miss out on the ideal business opportunities if you are acting like a drunk ass hole. This will reflect badly on you long term.

    You have taken in all the events you can handle, you have made your way back home what next? how exactly do you put this information and your new found contacts to use?

    Business Cards.

    Go through all the business cards you have been given and send your new found contacts a quick email thanking them for their time. This will be a good way for you to give them another reminder of what you spoke to them about and, I have personally gotten more business from the shows using this follow up method than if I had just waited for them to contact me.

    Notes.

    If you made any notes at the show, take a few minutes to re-write them, keep them safe in a notepad, you never know when one of these bits of information may come in handy.

    Well, that’s pretty much it for the basics of the adult conventions, obviously there is more to it than this but, if you are attending your first convention you will have a bit of insight into the work involved.

    Article written by Lee

  • Newbie Webmasters – What Is A Newbie?

    Date: 2011.02.23 | Category: General | Response: 0

    Newbie Adult Webmasters are something that is good for the adult industry as a whole. As more Newbie Webmasters join the adult industry the way in which things are done change and, more importantly, the way in which the newbies themselves get taught changes however, just what is a ‘Newbie’ when it comes to the adult industry? This is what we will take a look at in this brief article.

    Adult Webmaster Newbie – The Differences.

    Irrespective of what anyone tells you, everyone in the adult industry is a newbie its just a matter of figuring out what they are a newbie at. For example, personally i have just taken to learning PHP as a programming tool, i have never coded anything before so, i am officially a php newbie. Likewise there are webmasters who have never built a TGP gallery, they are TGP newbies, in fact, every facet of the adult industry has its own newbies some of them have been around for days whilst others have been around for many years. Going by the ‘true’ meaning of the word however, a newbie is someone who knows very little about very little.

    Message Board Newbies.

    At some point or other every webmaster will want to start posting on some of the industry’s message forums, whether this is to make friends or ask advice you will instantly be branded a newbie from your first post, if this isn’t the case, make sure that you give a brief history about what you do in the adult industry and, more importantly, how long you have been doing it, don’t go overboard however, just give enough information to let others know what it is you are doing on the message forum.

    Newbie Adult Webmasters – Overview.

    The perception of newbie webmasters is that many of them do not know what they are doing however, just because someone hasn’t heard the name before on a specific message forum this doesn’t mean the webmaster is in fact a true ‘newbie’ we all need to ensure that when using the term newbie we don’t make ourselves look like newbies in the process.

    Article written by Lee

  • Using Basic Server Side Includes (SSI)

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Server side includes are what their name sounds like.  A way to include the contents of another file into your current web page BEFORE the web page gets sent off to the surfer.  Not only does this include contents of a static file but you can also include the results of a CGI program and on some web servers, you can even have it display the current date and time.

    Now, many web hosts do not normally have server side includes turned on. You will have to ask your host if they have SSI turned on and if they do, what is the file name extension for SSI.  By default, SSI files have an .shtml extension.

    Sometimes, you can turn SSI on yourself.  If you host doesn’t have SSI turned on for you already, you can try adding the following two lines to your .htaccess file.  Then create a file with the .shtml extension, include a SSI command and see if it works.

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    When you use SSI commands, you place them exactly in the location within your web page where you want the output of the SSI command to appear when you finally browse the page.  If you have SSI, then you can use the following command to include a file.  When you include a file, you can either give it a path name to the file or you can give a URL to the file. I’ll list both here.

    <!–#include file=”/some/path/above/my/web/to/my/header.html” –>

    This is an example of how to include a file based on its path name.  Now,
    here’s the same file put included with its URL.

    <!–#include virtual=”/to/my/header.html” –>

    And this is an example of how to use a URL.  With a URL however, it cannot be a complete URL such as http://www.somesite.com/somefile.html.  It has to be within your current website.  You can also use the URL method to run a CGI script!  Here’s an example of that:

    <!–#include virtual=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″
    –>

    As you can see, we can even pass arguments to the CGI script just as if you typed it into your browser!  There is also another way of running a CGI script but this is not as widely used any more and you should use the #include virtual method instead.  Here is the same example so that you will know what it means when you see it.

    <!-exec cgi=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″ –>

    As I mentioned earlier, you can use SSI to display the current time and date. Here’s how:

    <!-echo “$DATE_LOCAL” –>

    This will display the current date and time. SSI is usually used when you  want to have a standard header or footer on each page.  It’s also used for displaying rotating banners or page counters. As you see above, you can also  use it to display the current date and time or the date when the page was  last modified.

    SSI has also been used for cloaking and some tracking  software uses SSI to track each incoming hit to the web page.  If you would  like more information about SSI, go to
    http://www.apache.org/docs/mod/mod_include.html.  This is the definitive guide on SSI on the Apache web server.

    Most other web servers that use SSI also follow these conventions.

    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

  • 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