I am a newbie in Bioinformatics but I know perl scripting. I've written few scripts for parsing pdb files(protein crystal structure files). Now I want to run these in a web server. I have apache2 installed in my ubuntu. I have read something about the CGI and is in /usr/lib/cgi-bin/ in local web server. I need to have all my perl scripts in that directory. These scripts takes input from command line ex: perl contacts.pl pdbFile.pdb.
Now how can I run these scripts inside a perl CGI script so that the CGI script throws html page on the fly and asks for user input (this includes PHP I guess). At the end I should have a html page able to run my perl script (contacts.pl) upon user input.
If its not possible to run my perl script in html web page, what is the other alternative?
Any help will be greatly appreciated.
<form action="contacts.pl">element, you collect user input here. When user clicks submit, the web browser sends input data to web server. A CGI enabled server, runs the script specified in form'sactionattribute and passes this data to it. The script does what you want with the inputs, and generates a HTTP response that is sent to the browser as response to form submission. These are steps involved in dynamic content generation using CGI.