PHP100 2019-03-27
代码如下:
$oldswf = "/uploads/swf/test.swf"; $oldjpg = "/uploads/litpic/test.jpg"; $flash2jpeg = new COM("SunCN.Flash2Jpeg"); if ($flash2jpeg) { $a = $flash2jpeg->Flash2Jpeg($oldswf, 150, 200, $oldjpg); if ($a) { $litpic = '/images/defaultpic.gif'; } else { $litpic = $oldjpg; } } else { $litpic = '/images/defaultpic.gif'; }