Hi
I need to implement a simple PHP proxy in a web application I am building (Its flash based and the destination service provider doesn't allow edits to their crossdomain.xml file)Can any php gurus offer advice on the following 2 options? Also, I think, but am not sure, that I need to include some header info as well.Thanks for any feedback!option1\[code\]$url = $_GET['path'];readfile($path);\[/code\]option2\[code\] $content .= file_get_contents($_GET['path']); if ($content !== false) { echo($content); } else { // there was an error }\[/code\]
I need to implement a simple PHP proxy in a web application I am building (Its flash based and the destination service provider doesn't allow edits to their crossdomain.xml file)Can any php gurus offer advice on the following 2 options? Also, I think, but am not sure, that I need to include some header info as well.Thanks for any feedback!option1\[code\]$url = $_GET['path'];readfile($path);\[/code\]option2\[code\] $content .= file_get_contents($_GET['path']); if ($content !== false) { echo($content); } else { // there was an error }\[/code\]