Php obtains the SWF animation sample code. 1. download and install the attachment. For more information, see Attachment help 2. copy the code to a proper location, generate an image, and how to handle it. copy the code as follows: $ oldswfuplo 1. download and install the attachment. For more information, see the attachment help.
2. copy the code to a proper location and generate an image. how can this problem be solved?
The code is as follows:
$ 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 ($ ){
$ Litpic = '/images/defaultpic.gif ';
} Else {
$ Litpic = $ oldjpg;
}
} Else {
$ Litpic = '/images/defaultpic.gif ';
}
Tip 2. copy the code to a proper position to generate an image. how can this problem be solved? the code is as follows: $ oldswf = "/uplo...