Server Load, PHP and including SWF files...
Hello all.I am relatively ok with coding in php, but I am curious at something my old host told me.
He said that I was using alot of server resources when I was "testing" a new script I wrote, and I immediately took it off but I'm wondering if it was really that script or something else.
The script basically, would INCLUDE($X) where $X = http://www.fullurl.com/folders/flash_games_001.swf
So my embed tag for macromedia flash would look like SRC="/game_swf.PHP?gamename=flash_games_001".
This WORKS completely well for SOME games, and not for other games. I'm wondering why and why not, and if there is a better way.
ALSO, VERY important, does this use alot of resources? Does this include, use serious bandwidth or server resources if the swf file is say 2 -5 megabytes. What if I hosted the SWF files on a DIFFERENT SERVER(s) as I do, they are split up on a few different servers.
The game_swf.php is on ONE server with the websites. Would that server INCLUDE the swf from another server and use up bandwidth on the SWF server AND the website server as well or would it just kind of link the swf.
Basically, this scripts' ONLY purpose is to HIDE the location of where the SWF files are hosted, to prevent leeching. I have tried .htaccess to do that, and it works against IFRAMES but does NOT work against the macromedia EMBED swf files and people leech like crazy that way.
Any suggestions and help is VERY much appreciated. I just need to prevent the LOCATION of the files from being revealed and or any other way of really protecting against leechers.
Thank you~!