Hello,
I know why it did not work. I had to change settings of safemode to off in php.ini/ I thoght it is required for shell_exec to work, but not for exec. I was wrong.
I have another problem
$pepath="/home/ehlvest/www/cgi-bin/pgn-extract";
$command="$pepath $this->filename -otmp_{$this->filename} -Whalg[PNBRQK]";
exec ($command, $output);
foreach ($output as $value) {echo "$value <br>" ;}
It does not print anything. However executing from LINUX shell works fine. There is output:
Processing b52.pgn
Kramnik, Vladimir - Gelfand, Boris Sanghi Nagar Sanghi Nagar 1994.??.??
Rublevsky, S. - Brodsky, M. Russia ? 1996.??.??
Rublevsky, Sergei - Leitao, Rafael Istanbul ol (Men) Istanbul 2000.11.01
Shirov, Alexei - Polgar, Judit Vienna Millenium Vienna 1996.??.??
Tkachiev, Vladislav - Sadler, Matthew Cannes op Cannes 1996.??.??
Kramnik, Vladimir - Gelfand, Boris Candidats FIDE sf2 Sanghi Nagar 1994.??.??
Tal, Mihail - Balashov, Yuri S URS-ch42 Leningrad 1974.??.??
Vasiukov, Evgeni - Triana, Justo Capablanca mem-A Cienfuegos 1975.??.??
Yudasin, L. - Krush, I. Smartchess.com Int New York USA 2001.06.13
Ehlvest, J. - Atalik, S. 2nd IECC Ohrid MKD 2001.06.06
Moreno Carnero, J. - Ruck, R. 2nd IECC Ohrid MKD 2001.06.06
Rublevsky, S. - Shneider, A. 2nd IECC Ohrid MKD 2001.06.04
12 games matched out of 12.
"ls -l" works fine.
Any idea ?