download window instead of executing
hi all, just a quick questions: why do I get a download window when I'm trying to execute a .pl file in the browser? It's something very simple but I forgot how one fixes this. I'll get back with details if necessary, kowalsky Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: download window instead of executing
I'm sure others have a more elegant way of doing it, but make this the first thing you print to stdout: print Content-Type: text/html\n\n; print \n; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Jablonsky Sent: Monday, June 25, 2007 1:37 PM To: perl-win32-users@listserv.ActiveState.com Subject: download window instead of executing hi all, just a quick questions: why do I get a download window when I'm trying to execute a .pl file in the browser? It's something very simple but I forgot how one fixes this. I'll get back with details if necessary, kowalsky Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: download window instead of executing
At 10:36 AM 6/25/2007 -0700, Dan Jablonsky wrote: just a quick questions: why do I get a download window when I'm trying to execute a .pl file in the browser? It's something very simple but I forgot how one fixes this. Hi. What do u mean by execute in the browser? That doesn't make sense. Are u trying to run the script as a CGI and have it print its output to the browser? If so then u don't have the script in the web server's CGI directory. If u want to have the script execute anywhere, not just in the CGI dir, u have to enable script aliasing in the webserver's configuration so that it will recognize .pl as an executable extension. -- REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =-- ...ne cede malis 0100 ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs