Dear Frankie,
Thank you so much for your prompt response and kindness.
I 'm a totally new on moodle 's maintain....
I still have another question, our office is using moodle 2.3. When I import data, there will be folders, file names and saving paths automatically created. How could I set the real http address of flash and ppt files in above code?