** I get a 404 error and it tries to download the perl file. **
A 404 error means a file was not found. You'll have to read the message to see exactly which file was not found.
If you call a script from a browser and your browser tries to download it instead of run it, it means that the server doesn't know it is suppose to execute it. That usually mean incorrect file permissions.
** I have changed the permissions as instructed: calendar.pl = CHMOD 755 **
If you are on a Windows server (you never said), you can not change the permissions, only the system administrator can. There is also the possibility that scripts have to be in a certain location before the server will know to run them. Check your host's CGI FAQs.
** calendarscript directory and ALL FILES AND DIRECTORIES UNDER IT = CHMOD 777 **
Not all servers allow files and directory permissions to be set to 777 for security reasons. Check your host's CGI FAQs. Doing so when not allowed to can stop all files in those directories from running.
Generally script files and their directories should be chmod to 755 (or 775 depending on the server's set up). Data files and their directories to 666 (or 766 depending on the server's set up). Check your host's CGI FAQs for how permissions have to be set on their server.
Dan O.
[This message has been edited by DanO (edited July 27, 2003).]