analiaf21 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

php parse error in create.php #259

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<?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.';
 
?>

Original issue reported on code.google.com by joelisaa...@gmail.com on 15 Jul 2010 at 3:30

GoogleCodeExporter commented 9 years ago
[15-Jul-2010 03:24:37] PHP Parse error:  syntax error, unexpected T_VARIABLE in 
/Volumes/Mediotype Working Server/webroot/fp/boda/src/php/create.php on line 2

Original comment by joelisaa...@gmail.com on 15 Jul 2010 at 3:30