Show sourcecode
The following files exists in this folder. Click to view.
Media/
Ovningar/
comments.php
exercises.php
ffmpeg_testing.php
incl/
index.php
install.php
mySQL/
source.php
style/
update_db/
viewsource.php
ffmpeg_testing.php
37 lines UTF-8 Windows (CRLF)
<?php
echo "INTE ANVÄND, ANVÄNDER FFMPEG.WASM ISTÄLLET FÖR BIN KÖRNING PÅ SERVER ÄR BLOCKERAT";
$path = realpath(__DIR__ . "/../../../bin/ffmpeg");
var_dump($path);
var_dump(is_executable($path));
echo is_callable('shell_exec');
if (is_file($path)) {
echo "Path exists!";
}
else {
echo "incorrect path!";
}
echo "<br>";
print_r(is_callable('exec'));
echo PHP_OS . "<br>";
echo php_uname();
echo "<pre>";
echo shell_exec("which ffmpeg 2>&1");
echo shell_exec("ls 2>&1");
// $output = shell_exec("$path -version 2>&1");
// $output = shell_exec("whoami 2>&1");
// print_r($output);
$output = shell_exec("\"$path\" -version 2>&1; echo Exit:$?");
var_dump($output);
echo "</pre>";
// if ($output) {
// echo "FFmpeg är inte installerat. Be administratören installera det.";
// }
// else {
// echo "FFmpeg är installerat!";
// }
?>