Page 1 of 1

Package .deb files using PHP5

Posted: Sat Jan 02, 2010 11:08 pm
by mofolo
Is there a way to run:

Code: Select all

dpkg -b [dir]
In php 5?

Everytime I run

Code: Select all

system("dpkg -b [dir]",$collect);
$collect returns: 127;

What am i doing wrong?

Re: Package .deb files using PHP5

Posted: Mon Jan 04, 2010 4:41 am
by Weirdan
127 is 'command not found':

Code: Select all

 
weirdan@virtual-debian:~$ lkjsdfk
bash: lkjsdfk: command not found
weirdan@virtual-debian:~$ echo $?
127
 
Try using absolute path to dpkg binary.