Re: [PHP] avoid calling php script

2008-03-13 Thread H u g o H i r a m
HTTP_REFERER will do the job, thanks! Hugo. --- Steve Edberg escribió: At 3:55 AM +0100 3/13/08, H u g o H i r a m wrote: Hello I have a swf that runs a PHP script that generates a XML, on the PHP is there any way to detect if the file is being called from the swf or from the browser? becau

Re: [PHP] avoid calling php script

2008-03-12 Thread Wolf
H u g o H i r a m wrote: Hello I have a swf that runs a PHP script that generates a XML, on the PHP is there any way to detect if the file is being called from the swf or from the browser? because I want to avoid the file being run directly from the browser or from any other file than the swf

Re: [PHP] avoid calling php script

2008-03-12 Thread Steve Edberg
At 3:55 AM +0100 3/13/08, H u g o H i r a m wrote: Hello I have a swf that runs a PHP script that generates a XML, on the PHP is there any way to detect if the file is being called from the swf or from the browser? because I want to avoid the file being run directly from the browser or from a

Re: [PHP] avoid calling php script

2008-03-12 Thread John Comerford
May the get_Browser function could tell you if it's from the .swf ? http://us.php.net/manual/en/function.get-browser.php H u g o H i r a m wrote: Hello I have a swf that runs a PHP script that generates a XML, on the PHP is there any way to detect if the file is being called from the swf or

[PHP] avoid calling php script

2008-03-12 Thread H u g o H i r a m
Hello I have a swf that runs a PHP script that generates a XML, on the PHP is there any way to detect if the file is being called from the swf or from the browser? because I want to avoid the file being run directly from the browser or from any other file than the swf. regards, Hugo. -- PHP