fixed: automatic video uploading

This commit is contained in:
sajjadcb 2014-04-15 09:12:59 +00:00
parent b8f9f99e28
commit 37a9b7fbd9

View file

@ -154,11 +154,11 @@ switch($mode)
{
//exec(php_path()." -q ".BASEDIR."/actions/video_convert.php &> /dev/null &");
if (stristr(PHP_OS, 'WIN')) {
echo php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName";
//echo php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName";
exec(php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName");
} else {
// for ubuntu
echo php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName > /dev/null &";
// for ubuntu or linux
//echo php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName > /dev/null &";
exec(php_path()." -q ".BASEDIR."/actions/video_convert_test.php $targetFileName > /dev/null &");
}
}