Hello, can anyone help me with this? I am new to PHP.
I would like to load a variable from a php file, the php script should
only give the variable if it was requested by a page on my site.
the php script would have to be something like:
<?
/*
some test here, if this script was accesed from
http://www.adriantnt.com then...
*/
$my_var="my_sec ret_value";
echo($my_var);
?>
I will need this to be used with swf flash files.
The swf flash file will be included in a page on my site, the swf will
contain action script that loads the variable from the above php
script, I want this variable to be returned only if it was requested by
the swf file on my site and not just by entering the php link in
browser so that no one can see the variable value except my swf file.
Can this be done ?
Thank you.
-Adrian.
I would like to load a variable from a php file, the php script should
only give the variable if it was requested by a page on my site.
the php script would have to be something like:
<?
/*
some test here, if this script was accesed from
http://www.adriantnt.com then...
*/
$my_var="my_sec ret_value";
echo($my_var);
?>
I will need this to be used with swf flash files.
The swf flash file will be included in a page on my site, the swf will
contain action script that loads the variable from the above php
script, I want this variable to be returned only if it was requested by
the swf file on my site and not just by entering the php link in
browser so that no one can see the variable value except my swf file.
Can this be done ?
Thank you.
-Adrian.
Comment