rhuffman8 0 Light Poster

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.