<? $f = escapeshellarg($_SERVER[SCRIPT_FILENAME]); list($h, $b) = preg_split("/\n\n/", `perl -x $f`,2); foreach (preg_split("/\n/", $h) as $_) header($_); echo $b; exit; ?> #!/usr/bin/perl print "Content-Type: text/plain\n\n"; print "perl++\n" for 1..10;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Because PHP sucks: escape to Perl.
by ambrus (Abbot) on Feb 06, 2006 at 20:16 UTC | |
by Juerd (Abbot) on Feb 06, 2006 at 20:22 UTC | |
|
Re: Because PHP sucks: escape to Perl.
by Aristotle (Chancellor) on Feb 20, 2006 at 00:02 UTC |