Re: how to execute Exe file in system

From: Date: Fri, 17 Feb 2012 12:26:13 +0000
Subject: Re: how to execute Exe file in system
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-316671@lists.php.net to get a copy of this message
I think it's wrong: system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms')) Instead, try this: system(' "C:/Program Files/GAMS23.7/gams.exe" "C:/Program Files/GAMS23.7/trnsport_php.gms" ')) It is a good practice to write full path because we don't know behaviour any operating system we use when we just use simple name. On Fri, Feb 17, 2012 at 7:12 PM, Negin Nickparsa <nickparsa@gmail.com> wrote: > if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program > Files/GAMS23.7/trnsport_php.gms')) !== FALSE) > { >  print('Not error!'); > >  printf('Output is "%s"', $out); > } > else > { >  print('Error'); > } > Fatih it shows again nothing why I should set the full path even when I run > my file on the path I don't think so that it is needed I don't know how to > work with these quotations was it right Duken? -- Duken Marga

« previous php.general (#316671) next »