@NogDogMay 27.2008 — #I don't think you can. Your file is on the server, but the request for it is coming from the client via HTTP; so I know of know way to tell on the server side that a request for the file is coming from flash and not from any other client that sends HTTP requests.
@bluestartechMay 27.2008 — #assuming your running on linux and only want the php script to acess flash movie, use chmod as follows:
chmod 660 movie.swf, this will make the file readable only by owner of file and deny access to all other users.
however if your php script is run under the webserver username(likely!) then this may not work, but changing the group belonging of the file would...e.g.
chown newuser flash.swf
chgrp apache flash.swf (change group belonging to group the webserver belongs to)
this is a little convoluted but should work...
another solution would be to place content u don't want to explicitly share in a directory outside the servers public directories, and just point the php script to read file frm there..