- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am attempting to run a cgi script that takes form data, saves it to a vcard and emails the vcard to the recipient. I have edited the file and placed them in my cgi-bin. I believe the permissions are set properly and the host company verified that CGI/Perl is on.
Here is the form:
http://www.alariccomplianc
Here is the perl file:
http://www.alariccomplianc
Any thoughts, ideas or solutions greatly appreciated! Or if you know a better script..... :)
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Adam314Posted on 2009-06-26 at 08:00:36ID: 24721643
Do you have access to the error log? If so, look in that, and it will give you a better error message.
If not, a few things that can cause problems:
1) You edited the file on windows, but copied the file to a unix server without fixing the line endings.
To solve: If using FTP, upload file in ASCII mode
Or, run dos2unix on file
2) You have the #! line not correct.
This line must contain the full path to the perl interpreter. This is typically one of these:
/usr/bin/perl
/usr/local/bin/perl
3) Your script is not printing proper HTTP headers. To solve, use the header function of the CGI module:
use CGI ':standard'; #At the top
print header(); #When ready to send headers - must be before anything else is printed
4) Some prdoblem with your script causes an error message to be displayed before the headers.
To solve, add this to the top of your script:
use CGI::Carp 'fatalsToBrowser';