reverb9
12-06-2005, 09:28 AM
I´m writing a flash application that is supposed to update itself considering what time it is and what date it is. I´m using the server clock since I don´t want the user just to change their system clock to get to the future content.
So, I´ve created some files and uploaded them to my server and I have stored the file names in in my script. Now, my flash application, gets the file names from the php script and then loads the files into itself. No problem. It all works fine, BUT, I do want to make a referertest in my script. Again, so that users can´t just type in the URL to the script and get access to the file names.
How do I do this? My referer test works fine if I try with a plain html hyperlink - but not when making the call from within a flash movie.
Php for testing:
$ref = $_SERVER['HTTP_REFERER'];
print $ref;
Any tips?
So, I´ve created some files and uploaded them to my server and I have stored the file names in in my script. Now, my flash application, gets the file names from the php script and then loads the files into itself. No problem. It all works fine, BUT, I do want to make a referertest in my script. Again, so that users can´t just type in the URL to the script and get access to the file names.
How do I do this? My referer test works fine if I try with a plain html hyperlink - but not when making the call from within a flash movie.
Php for testing:
$ref = $_SERVER['HTTP_REFERER'];
print $ref;
Any tips?