I <3 myself sooooooo Much :) It works now like a charm I am successfully finished:D this is my SIMPLE solution no need to set path files! :D echo exec('C:\WINDOWS\system32\cmd.exe'); echo exec('gams.exe trnsport_php.gms'); It works like a charm:)
On Fri, Feb 17, 2012 at 6:34 PM, Negin Nickparsa <nickpa...@gmail.com>wrote: > I found the correct one: > > $cmd = 'C:\Progra~1\GAMS23.7\gams.exe'.' > '.escapeshellarg('C:\Progra~1\GAMS23.7\trnsport_php.gms').' 2>&1'; > $out = `$cmd`; > var_dump($out); > > It will show NULL,so No error > and I am sure it is correct because If I change gams.exe to egams.exe it > recognizes > but > It can't run through system > so my problem in path file has solved here Thanks to All of you. > now I should find some solutions for permissions It doesn't relate to > address file if I'm correct > > On Fri, Feb 17, 2012 at 5:27 PM, Negin Nickparsa <nickpa...@gmail.com>wrote: > >> :) >> >> >> On Fri, Feb 17, 2012 at 5:27 PM, Fatih P. <fatihpirist...@gmail.com>wrote: >> >>> well then fix it. i m not using editor. >>> >> >> >