I am trying to learn CGI programming in PERL. I have a simple test page that I want to try out, but when I upload it and try to display it as a web page, all I get is the source code. Can anyone help me out? I'm not sure what file extension to use (.cgi, .pl, or html), or if it should have a #! line to point it to the perl executable. I'm a true beginner, so I'd really appreciate any help.
peterv6
0
Newbie Poster
Recommended Answers
Jump to PostThis is a configuration issue. If you put the perl script in the cgi directory and MAKE IT EXECUTABLE by the server user and use a .cgi extension, it should work fine.
All 4 Replies
peterv6
0
Newbie Poster
foco
0
Newbie Poster
mitchems
12
Posting Whiz in Training
d5e5
109
Master Poster
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.