|
@ -47,7 +47,7 @@ foreach ($_FILES as $key=>$files){ |
|
|
file_put_contents("/tmp/log.txt", "file-$key-$i\n", FILE_APPEND | LOCK_EX); |
|
|
file_put_contents("/tmp/log.txt", "file-$key-$i\n", FILE_APPEND | LOCK_EX); |
|
|
file_put_contents("/tmp/log.txt", $files['name'][$i], FILE_APPEND | LOCK_EX); |
|
|
file_put_contents("/tmp/log.txt", $files['name'][$i], FILE_APPEND | LOCK_EX); |
|
|
$tmpfname = tempnam("/tmp", "FOO"); |
|
|
$tmpfname = tempnam("/tmp", "FOO"); |
|
|
$cmd = "/usr/local/bin/convert $tmpname PDF:$tmpfname"; |
|
|
|
|
|
|
|
|
$cmd = "$CONVERT_CMD $tmpname PDF:$tmpfname"; |
|
|
exec ($cmd); |
|
|
exec ($cmd); |
|
|
file_put_contents("/tmp/log.txt", "\n$cmd\n"); |
|
|
file_put_contents("/tmp/log.txt", "\n$cmd\n"); |
|
|
|
|
|
|
|
|