Re: how to execute Exe file in system

From: Date: Fri, 17 Feb 2012 16:07:14 +0000
Subject: Re: how to execute Exe file in system
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.general 
Request: Send a blank email to php-general+get-316705@lists.php.net to get a copy of this message
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 <nickparsa@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 <nickparsa@gmail.com>wrote: > >> :) >> >> >> On Fri, Feb 17, 2012 at 5:27 PM, Fatih P. <fatihpiristine@gmail.com>wrote: >> >>> well then fix it. i m not using editor. >>> >> >> >

« previous php.general (#316705) next »