The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Serving up html using cgi-perl

Discussion in 'General Discussion' started by rpuskarcik, Jan 1, 2006.

  1. rpuskarcik

    rpuskarcik Registered

    Joined:
    Jan 1, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    earth
    I would like to create a perl script which serves up an html page. Only one perameter needs to be passed to the script: something like http://www.website.com/page.htlm?1234

    When a person types the above in their browser, they get a webpage. By typing in a differant number at the end, they get almost the same webpage with some modifications, all performed by the perl script.

    Here is what I need help with:
    1. A simple example script to build apon, which accepts the parameter, and based apon it replaces some word or phrase, then serves up a simple html webpage.
    2. I need to know the details of how to set this up: where the script is physically located on the server (/cgi.bin)?
    3. What does page.html look like (or does it need to be shtml)
    4. Anything else I need to know...this is the first time i've attemted this.

    I am somewhat familiar with perl and have written some data extraction routines for use locally but have never written anything which runs on a server. So any information in this regard would certainly be usefull.

    Russ
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    These forums deal with the cPanel issues and not cgi/Perl scripting. You are better off posting this question/request on a cgi/perl forum such as:
    http://www.ahfb2000.com/webmaster_help_desk/forumdisplay.php?f=49
    or
    http://www.daniweb.com/techtalkforums/
     
Loading...

Share This Page