954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Running a CGI File In HTML

I am working on a project using HTML, PHP, and LINUX shell commands to create a dynamic web page but I seem to be having some trouble figuring out how to run the .cgi file with the shell commands in it using either HTML or PHP (if they are both an option, whichever one is more efficient).
This is the code for the .cgi file:

#!/bin/sh
echo -e "Content-type: text/plain\n\n"

cal 2011
echo -e "\n"
cal 9 1752
echo -e "\n"

It is just supposed to display a calendar for the current year and then one for the month of September in 1752. I don't think the problem lies in the shell commands but I figured I would include it, just in case.

rhuffman8
Light Poster
30 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: