Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 AS3 ALIVEPDF通过method.remote(PHP)保存不再工作_Actionscript 3_Flash_Alivepdf - Fatal编程技术网

Actionscript 3 AS3 ALIVEPDF通过method.remote(PHP)保存不再工作

Actionscript 3 AS3 ALIVEPDF通过method.remote(PHP)保存不再工作,actionscript-3,flash,alivepdf,Actionscript 3,Flash,Alivepdf,SWF位于web服务器上。我正在使用AS3中的代码调用函数 myPDF.save(Method.REMOTE, "http://www.example.com/generator/createpdf.php", Download.ATTACHMENT, "line.pdf"); 这是我在服务器上的PHP脚本 $method = $_GET['method']; $name = $_GET['name']; if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA

SWF位于web服务器上。我正在使用AS3中的代码调用函数

myPDF.save(Method.REMOTE, "http://www.example.com/generator/createpdf.php",
 Download.ATTACHMENT, "line.pdf");
这是我在服务器上的PHP脚本

$method = $_GET['method'];
$name = $_GET['name'];


if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {

    // get bytearray
    $pdf = $GLOBALS["HTTP_RAW_POST_DATA"];

    // add headers for download dialog-box
    header('Content-Type: application/pdf');
    header('Content-Length: '.strlen($pdf));
    header('Content-disposition:'.$method.'; filename="'.$name.'"');
    echo $pdf;

}  else echo 'An error occured.';

它过去可以工作,但不久前就停止了。任何帮助都将不胜感激。

1这对我也不起作用,直到我添加了以下内容-

if(!$HTTP_RAW_POST_DATA){
$HTTP\u RAW\u POST\u DATA=file\u get\u contents'php://input’; }

2我还打了/src/org/alivepdf/pdf/pdf.as::根据这篇文章保存