Ive been looking all over but couldn’t find anything so I am here to resort to my last hope resort 🙂
I am trying to create some type of page viewing statistics for only files of mine that end with swf.
I was wondering if its possible that htaccess can request the URL of another php file if the file extension they are going to ends in .swf but still land on the swf page.
I know i could easily use javascript with a link onclick function but this simply wont work for direct links/reefer’s.
This isn’t related to
.htaccessbecause I don’t think what you want to do is possible with.htaccess(But don’t quote me on that)You could make a PHP page like this:
Then you could send people directly to it and it would act like a .swf file. Since you’d be making a lot of calls to
file_get_contents('swffile.swf');which reads the file of the hard disk you’d probably also want to look into something like PHP Memcache, so you could cache the contents of you .swf file in your servers RAM and significantly speed up the request time 🙂