PHP svn revizyon exec kullanarak numarayı () ve komut almak nasıl?

0 Cevap php

Ben PHP komut svn revizyon numarası gerekir. I exec () ile aşağıdaki komutları kullandık. Ama herhangi bir şey döndürmez.

$value = exec("usr/bin/svn --username myusername--passwveyad mypasswveyad info /home/mysite/mysite_www/mysite |grep Revision: |cut -c11-", $output, $status); 

veya

$value = exec("svn info |grep Revision: |cut -c11-", $output, $status);

I have also tried using share script but no result. Please guide me how to get a SVN revision number using PHP and the command.

0 Cevap