PDA

View Full Version : how to actually redirect?


windec
08-01-2009, 01:59 PM
Consider that flex connects to a php script. Data is stored in folders, each with its own xml file.Php script takes arguments, and it is supposed to return an xml file particular folder. Xml file will be parsed by client to get more data from that particular folder, but that is another story. I use header header("Location: $path_xml"); and it is not working in flex. When I call this PHP script in the browser, it is actually redirected to the folder where xml file resides and xml file is being displayed. Any ideas why flex is not redirecting?

Peter Cowling
08-02-2009, 08:25 AM
I would use curl to pull the data in, rather than trying to redirect.