Posts by rpuskarcik
Thank's for the info. What I've gathered so far, is that the host I am using does use apache and has set up a cgi-bin directory. I supose I put me perl script in that directory as "makepage.pl" let's say. But then when a person goes to http://www.website.com/page.htlm?1234, what code in that page will actually invoke the script such that page.html is never actually seen, but instead the makepage.pl script's page is seen instead.
My concern about this is based on something I experienced where another programmer provided a script for me to use (hidden, so I have no idea what he had done) but when I went to the page, it served up the html as a text document. I want to avoid this if possible. And I definitely want to use my host server.
rpuskarcik
Newbie Poster
2 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
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.
rpuskarcik
Newbie Poster
2 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0354 seconds
using 2.46MB