I don't see why this node has 3 keep votes, but I'll answer your question anyhow: No. It's not possible with perl, but theoretically you could do it with an ActiveX control. I'm not getting into detail about it, read it up on your own. Note that it's a Micro$oft thing, so it's audience is limited. My best answer: don't do it. Let the user download it and execute it themselves. No extra work for you, the amount of work an internet user expects to have to do, and it keeps the internet the way it was meant to be. Dont Do It. Period. | [reply] |
Whether the user's browser renders, downloads or executes a link is up to the brower's settings and the link or web-page's MIME-type settings. Of course Microsoft browers have a tendency to look to the filename-extension as well and this messes things up. If you make a dynamic web-page (with mod_perl of course!) you should take care of putting the right mime-type for the content header.
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] |
Isn't this usually called 'infecting the user with a virus'?<g>
Seriously though, if you think about it for just a moment, this is a very dangerous thing. There's no way of automatically executing files from a browser unless (as mentioned above) you persuade your user to install *another* piece of software first - ActiveX / custom-built installer / whatever - and then persuade them to turn off their browser security checks and the like. And once you've done that, you need to remind them to switch them all *on* again after visiting your site, to prevent the next unscrupulous site they visit trying to do the same thing...
<a href='HuntForCreditCardNumberInMySwapFile.exe'>Britney Pics</a>
| [reply] [d/l] |
And what, exactly, does this question have to do with Perl?
| [reply] |