Embedding Perl
| From: | Terry Romine | Date: | Wed, 24 Oct 2001 16:05:36 +0000 |
| Subject: | Embedding Perl | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13676@lists.php.net to get a copy of this message | ||
I have a small situation where it would be good to be able to embed a perl routing in a php script. Is this possible? Or do I need to pass control from php to a perl script and return?
A quick synopsis would be (in pseudo code)
<?php
if($theFileType == "pdf" {
// call convert.pl to get a thumbnail
}
else {
// other file type processing
}
?>
Alternatively, is there a module that can take a pdf file and make a thumbnail of the first page?
Thanks,
Terry