Re: how to execute Exe file in system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux