猿问

在php执行结束时返回bash文件代码。

我在php文件中使用了bash文件。(要求/包括)在那之后,当我想运行bash文件,但不希望返回代码时。结果即将到来。但是,不必要的代码即将到来。


<?php

require_once("shapemorph");

ob_start();

$imageFile2 = 'one-car.jpg';

$imageFile1 = 'two-car.jpg';

shell_exec('./shapemorph -d 10 -p 100 -r "73,56 57,68" '.$imageFile2.' '.$imageFile2.' testfy.gif');

ob_end_flush();

exit;

?>

我也使用了ob_start()。但是代码仍在继续。


我不希望代码被返回。


翻过高山走不出你
浏览 115回答 1
1回答

素胚勾勒不出你

如果您使用的是Linux,则可以将它们返回到/ dev / null
随时随地看视频慕课网APP
我要回答