Re: how to execute Exe file in system
| From: | Fatih P. | Date: | Fri, 17 Feb 2012 13:48:48 +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 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316695@lists.php.net to get a copy of this message | ||
On Fri, Feb 17, 2012 at 3:43 PM, Negin Nickparsa <nickparsa@gmail.com>wrote:
> Fatih C:\Program Files\GAMS23.7 this is where my Gams is.
> maybe the problem is with permissions
> what should I do for permissions?
> what shoud I do to write this path file:'(
> I need it!
> when echo system('dir')
> shows me files of C:\Program Files\GAMS23.7
> then it shoud run the command gams.exe transport.gms without giving
> pathfiles
>
> what's wrong here?
> what reason is here for setting path files?
>
>
> On Fri, Feb 17, 2012 at 5:06 PM, Fatih P. <fatihpiristine@gmail.com>wrote:
>
>> ERRORNULL
>> maybe program Files which has space should have something like \ which I
>> don't know ha?
>> or because of Null It is correct?
>>
>> means false.. it cannot find the path. you have problem with path.
>>
>
>
for path:
$path = "\"C:/Program Files/GAMS23.7/gams.exe"\";
qoute the paths using \" double quoutes outside. then pass them.