0

I have used a bash file in a php file. (Require/Include) After that when i want to run the bash file, but not want code will be returned. Result is coming at the end. But the unnecessary codes are coming.

<?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;
?>

I have used ob_start() for that also. But still the codes are coming.

I do not want the code to be returned.

1 Answers1

1

You can Just return them to /dev/null if your using Linux

leo Stahl
  • 90
  • 10