Php 加载失败:IO错误:错误#2032:流错误
当我试图调用php时,我遇到了这个错误 加载失败:HTTP状态=0 加载失败:IO错误:错误#2032:流错误。网址: 请帮我整理一下, 代码如下:Php 加载失败:IO错误:错误#2032:流错误,php,actionscript-3,flash-cs5,Php,Actionscript 3,Flash Cs5,当我试图调用php时,我遇到了这个错误 加载失败:HTTP状态=0 加载失败:IO错误:错误#2032:流错误。网址: 请帮我整理一下, 代码如下: function checkLogin (e:Event):void { var phpVars:URLVariables = new URLVariables(); var phpFileRequest:URLRequest = new URLRequest("http://www.xxxxxxx.com/x
function checkLogin (e:Event):void
{
var phpVars:URLVariables = new URLVariables();
var phpFileRequest:URLRequest = new URLRequest("http://www.xxxxxxx.com/xxx/Login.php");
phpFileRequest.method = URLRequestMethod.POST;
phpFileRequest.data = phpVars;
phpLoader = new URLLoader();
phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
phpLoader.addEventListener ( IOErrorEvent.IO_ERROR, handleIOError );
phpLoader.addEventListener(Event.COMPLETE, handleComplete );
phpLoader.addEventListener ( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus );
phpLoader.addEventListener ( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError);
phpVars.userName = userName.text;
phpVars.passwords = passwords.text;
phpLoader.load(phpFileRequest);
}
function handleHttpStatus ( event:HTTPStatusEvent ):void
{
trace ( "Load failed: HTTP Status = " + event.status );
}
function handleSecurityError ( event:SecurityErrorEvent ):void
{
trace ( "Load failed: Security Error: " + event.text );
}
function handleComplete ( event:Event ):Void
{
trace ( "The data has successfully loaded" );
}
function handleIOError ( event:IOErrorEvent ):void
{
trace ( "Load failed: IO error: " + event.text );
}
如果PHP按照您所说的测试正常工作,那么这可能是一个跨域问题,因为您试图访问一个被阻止的域 添加跨域策略文件
更多信息很可能是PHP中的错误。尝试确保您的php文件没有错误。作为初始测试,只需从Login.php文件.thanx返回一个基本的回显,以获得回复。。。。同样的错误仍然存在