shell-exec

    -1热度

    1回答

    我试图去加载页面,然后执行powershell脚本。但不幸的是,我无法得到这个工作。当我进入页面时,它会自动转到脚本并将我重定向到失败页面的成功。 我试图在重定向后进行睡眠,但它只是等待几秒钟,然后运行脚本并将我重定向到html页面。 header('Location: /loading.html'); include ("file\where\the\variable\comes\

    1热度

    1回答

    我要搜索一个词上example.com/page,如果这个词存在什么也不做,如果这个词不存在,然后送我通过了shell_exec $command1 = exec("mail -s 'title' [email protected] <<< 'message'"); $text1 = file_get_contents('http://example.com/page'); $intext1

    2热度

    1回答

    因此,我试图在我的Laravel 5.3中运行python脚本。 这个功能在我的控制器里面。这只是将数据传递给我python脚本 public function imageSearch(Request $request) { $queryImage = 'c:\\\xampp\\\htdocs\\\identificare_api\\\public\\\gallery\\\herbs\\

    0热度

    1回答

    我目前正在尝试从我的PHP脚本中使用“wine”命令。 如果我执行此: $shell = shell_exec("/usr/bin/wine --version"); 所有工作正常和葡萄酒版本显示在$壳。 但是,如果我试图使它像这样: $run = shell_exec("/usr/bin/wine ".$workdir."/bin/tool.exe -m ".$workdir."/bin/s

    0热度

    1回答

    所以我读这篇文章通过量:https://trac.ffmpeg.org/wiki/PHP ,发现这个: <?php echo "Starting ffmpeg...\n\n"; echo shell_exec("ffmpeg -i input.avi output.avi >/dev/null 2>/dev/null &"); echo "Done.\n"; 代码工作几乎完全正常,但困扰

    -1热度

    1回答

    对于例如:我在执行一个shell命令: "ffmpeg -i input.flv -ss 00:00:14.435 -vframes 1 out.png" 这里input.flv路径应该是这样的 - >影像\ input.flv或d:\ WAMP \ WWW \ PROJ_NAME \ PUBLIC \影像\输入。 flv?

    0热度

    2回答

    我使用shell_exec到我的服务器上执行命令,并显示回声结果。 现在,我要选择和显示显示的文件。我怎样才能做到这一点?从代码 <body> <form method="get" action="<?php echo $_SERVER["PHP_SELF"] ?>"> <input type="submit" class="reset_button"/> <p>

    2热度

    4回答

    我基本上想检查一个命令是否使用shell_exec运行成功。 简单的函数: public static function foo() { $command = "blabla"; shell_exec($command); } 编辑,我想先生M的建议是这样的: foreach($commands as $key => $value) { shell

    0热度

    2回答

    在linux终端运行“mumudvb -l”命令有正确的输出。 但在PHP输出nothing.like这样的: $output = exec('mumudvb -l'); $output = shell_exec('mumudvb -l'); $output = "" //the output 为什么出现这种情况?

    0热度

    1回答

    更新:经过大量搜索之后,似乎Azure可能会限制我执行某些shell命令的能力。我目前正在使用Standard 1 Web App计划 - 我需要做些什么才能够通过PHP使用BCP实用程序? 所以我有一个PHP脚本运行在我的Azure网络应用程序,我一直在尝试使用BCP上传数据。我能够通过Azure控制台成功运行该命令,但无法通过PHP运行它。 PHP代码: $upload_dir = '../u