Hello, i face some problem when i use the function exec() with php code.. maybe i use it in rong way .....but i need to include external program(which is extract the root of arabic word) then go to the search program written in php lang ...if u have another way to do that please tell me .. thanks for your help
when i use system or exec function my code like that <? $var=exec('C:\\folder\file.pro'); /* file in prolog code */ print "$var"; ?> but in the browser ....no result how i can solve it???
Try, $var=exec('path\to\prolog\prolog.exe C:\folder\file.pro'); Code (markup): I'm not familiar with prolog, so I'm not exactly sure if it's prolog.exe, but you get the idea.
thanks php_daemon i try that and it works in the hello.pl (perl program) but when i try to prolog program,i still wait the download browser without any result i write this code for prolog ..is it right? $last=system('C:\VIP\BIN\WIN\32\VIP.exe C:\VIP\BIN\WIN\32\ARABIC.PRO'); i'm using visual prolog on windos.
thanks php_daemon i try that and it works in the hello.pl (perl program) but when i try to prolog program,i still wait the download browser without any result i write this code for prolog ..is it right? $last=system('C:\VIP\BIN\WIN\32\VIP.exe C:\VIP\BIN\WIN\32\file.PRO'); i'm using visual prolog on windos.
thanks php_daemon i try that and it works in the hello.pl (perl program) but when i try to prolog program,i still wait the download browser without any result i write this code for prolog ..is it right? $last=system('C:\VIP\BIN\WIN\32\VIP.exe C:\VIP\BIN\WIN\32\file.PRO'); i'm using visual prolog on windos.[/QUOTE]