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.

Thread Status:
Not open for further replies.
  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
    Please, do not cross post. You posted this question/request on http://forums.cpanel.net/showthread.php?t=48173
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Very true, closing this thread.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page