i’m trying to use a simple php file as a proxy so my flash movie can access web services.
I can get everything to work fine if I hardcode the variable i want to use in my php script in the URL.
I would like to pass that variable from flash to php though so that the user can define the variable and pass it…
this is what i have (you can see where I’m trying to get the variable in there) which doesn’t work:
<?php
var $ZipCode;
$dataURL = "http://www.innergears.com//WebServices/WeatherByZip/WeatherByZip.asmx/GetWeatherByZip?ZipCode=".$ZipCode";
//note that this will not follow redirects
readfile($dataURL);
?>
As I said, if I hardcode the variable like this it works:
<?php
$dataURL = "http://www.innergears.com//WebServices/WeatherByZip/WeatherByZip.asmx/GetWeatherByZip?ZipCode=90210";
//note that this will not follow redirects
readfile($dataURL);
?>
thanks for any help as I barely know enuff php to be dangerous…!