Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Serving up html using cgi-perl

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

  1. rpuskarcik

    rpuskarcik Registered

    Jan 1, 2006
    Likes Received:
    Trophy Points:
    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

    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.

  2. AndyReed

    AndyReed Well-Known Member PartnerNOC

    May 29, 2004
    Likes Received:
    Trophy Points:
    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:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice