Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Perl to create HTML for intranet

Status
Not open for further replies.

akelabanda

Programmer
Dec 19, 2001
61
0
0
IN
Hi

I am planning to have all pages dynamically generated
using Perl starting from "index.cgi".

I am aware that I should use CGI.pm for this purpose
and use start_html and end_html, header with print
statements to generate a html document (basics :)).

But where should I be placing the scripts ? My webserver
is apache.

Typing should display the
Home page I intend to put up.

And how can I use hyperlinks to run the CGI scripts ?
Most of the scripts that I found talk about form handling.

For example, I have a hyperlink "DOCS". When I click on
this, it should ideally run a script that takes a listing
of a directory, creates hyperlinks to all the files there.
So clicking them will open those files. This way I need
not update the page whenever there is a new file added
to the folder.

Thanks in advance for your help.

Regards
Raj
 
HI !!

If you are runing apache you should teka a look at the httpd.conf and find waht directory is allowed to run CGI scripts like .pl and .cgi, it should look like:

<Directory &quot;/var/ AllowOverride None
#this allows the directory to run CGI !
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

you should point your links like &quot;DOCS&quot; to a script placed in this directory !

=> Daniel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top