I was trying to run a C program that takes input from a file and writes into a file, I have tried system
, exec
, shell_exec
and those have not worked for me. Is there any other way to do this? Also, the C program requires multiple command line arguments.
This is the code that I used.
<?php
system('./gpmetis 1.graph 100', $outputArray);
print_r($outputArray);
?>
The error code I get is 139. It is not from my program, and from PHP. I tried looking it up on the net and found nothing useful.