shane07 Posted November 1, 2007 Share Posted November 1, 2007 I have a problem with downloading swf file. The downloaded swf file has no contents. This means the file is downloaded but the contents are not. Have somebody has any idea regarding this. I used readfile() function to read the swf file. Does readfile() function work in this case or there is any other function for this case? Quote Link to comment https://forums.phpfreaks.com/topic/75618-downloading-swf-file/ Share on other sites More sharing options...
tibberous Posted November 1, 2007 Share Posted November 1, 2007 Swf files are able to load content externally, it can help load times and make them harder to steal. I'd just try to download it normally and see what you get. If it doesn't look like anything, decompile it and you'll probably the find the code to a loader. Quote Link to comment https://forums.phpfreaks.com/topic/75618-downloading-swf-file/#findComment-382609 Share on other sites More sharing options...
~n[EO]n~ Posted November 1, 2007 Share Posted November 1, 2007 Are you trying to download "others" swf file OR are you trying to make users download a SWF file from your site. If you downloaded others swf file, the content will not come if they have used loadmovie in the main file, I have seen lots of flash site doing that i.e. they make a blank movie and load other swf file into it so that flashgrabber and other flash decompilers cannot copy them. Quote Link to comment https://forums.phpfreaks.com/topic/75618-downloading-swf-file/#findComment-382612 Share on other sites More sharing options...
~n[EO]n~ Posted November 1, 2007 Share Posted November 1, 2007 If you are allowing users to download SWF file from your site then you can use header('Content-type: application/x-shockwave-flash'); Quote Link to comment https://forums.phpfreaks.com/topic/75618-downloading-swf-file/#findComment-382614 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.