Bu anlamaya çalışıyorum. Öyle gibi) (shell_exec kullanarak, php içinde perl çalıştırmak çalışıyorum:
<?php
$output=shell_exec("./tst.pl > test.txt");
//$output=shell_exec("./tst.pl");
echo $output;
?>
It will not write output to a file using ">" filename.txt. It will work if I execute without directing it to a filename as I can confirm this with echo.
Does this have to do with using ">"? Permissions should be fine as I am able to run the same perl script on command line and direct to file. Any suggestions for executing this?
"Test.txt" çıktı girdi olarak kullanılır:
<?php
$data = array();
$InputFile = file("test.txt");
...
?>