in reply to PHP through PERL
toprint qq! # code !;
) all the browser would receive is your PHP code verbatim, without it ever executing.print q! # code !;
Now there are really ugly ways that you might be able to get beyond that, such as using exec(), or system() and somehow ensuring you pass them all of what had been in STDIN, but I don't recommend them.
File upload in Perl should be fairly OS-agnostic. There are lots of good nodes around the monastery that will answer your question, but here's one that I've written.
If that doesn't work for you, let us know what the problems you have with it are. Alternately, of course, you can just write your upload script straight in PHP. mmm.... mixing PHP and CGI... it does tend to lead to maintainence headaches.
Hope it helps.
jarich
|
|---|