Hi, Usually, a perl script when not set to "chmod +x" or as executable file will just be treated as an ordinary text file. This may be the reason why you get the text file instead of executing the commands inside the file. Please make sure you:
"chmod +x your_script.pl" Then try to execute first using the command line. If it doesn't work in the command line, it won't surely work in the web browser. best regards, --edwin ----------------------------------------------------------------- If Americans have atomic bombs & the Internet... Filipinos are very far behind to catch up in any field. -Edwin D. Viņas [EMAIL PROTECTED] http://www.geocities.com/edwin_vinas Science Research Specialist I PREGINET Project Advanced Science and Technology Institute UP Technopark Complex, CP Garcia Ave, Diliman, Quezon City Philippines ----------------------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, please note that any review, retransmission, dissemination, copying or other use of, or taking of any action in reliance upon, this information by you or by persons or entities other than the intended recipient is prohibited. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- Original Message ----- From: "B.J. Faught" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 5:40 PM Subject: Apache showing Perl code > I just installed Apache and mod_perl, but for some reason when I execute > scripts through my Apache server it shows all of the Perl code: > > #!C:/Perl/bin/Perl.exe > print "Content-type: text/html\n\n"; > > foreach $var (sort(keys(%ENV))) { > $val = $ENV{$var}; > $val =~ s|\n|\\n|g; > $val =~ s|"|\\"|g; > print "${var}=\"${val}\"\n"; > } > > I got the path found on the first line from an example Perl script > (printenv.pl) that came with the latest version of the Apache server. > > Could anybody give me a hand with a suggestion or two? > >