Re: Executing a .jar from a php script

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

 



Does the php server have access to run that file? (ie. if its apache,
does he or his group have the rights to run that file)
Also you can try to use $var = system('java -jar JARNAME', $dump); and
try to output from both variables.

2008/10/27 Bastien Helders <eldroskandar@xxxxxxxxx>:
> Hi,
>
> I would like to execute a jar file using exec('java -jar JARNAME <option>'),
> but so far, my web application didn't gave me any hint that it did anything
> (I tried to echo the result of the function, but nothing), and in fact I
> don't think anything was done.
> The jar file is in the same folder as the php scripts, so I don't know what
> I did wrong.
>
> Best Regards,
> Bastien
>
> --
> haXe - an open source web programming language
> http://haxe.org
>

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