What are the potential pitfalls of using include() in PHP for Flash integration?

Using include() in PHP for Flash integration can lead to potential security vulnerabilities, such as allowing an attacker to inject malicious code into the included file. To prevent this, it is recommended to use a more secure method like file_get_contents() to fetch the contents of the file and then output it.

<?php
$flashFile = file_get_contents('flashfile.swf');
echo $flashFile;
?>