you would still need a helper script to call the php file then.
you could do a bit like this in your php file
if (!isset($_GET['i am flash'])) {
exit;
}
but thats very easy for the user to work around and fake.
but you could prob make flash POST a variable to the php script, which would be more difficult for the user to do.