Search found 7 matches

by mofolo
Sat Jan 02, 2010 11:08 pm
Forum: PHP - Code
Topic: Package .deb files using PHP5
Replies: 1
Views: 74

Package .deb files using PHP5

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?
by mofolo
Sat Dec 12, 2009 12:42 am
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

Re: PHP and DEB (AR) Files.

AbraCadaver wrote:You don't need the control file, just the data file.
Thats true, but it still is being extracted from the TAR file.

And as that is happening, it is been executed! How can i avoid extracted this file?
by mofolo
Fri Dec 11, 2009 2:47 pm
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

Re: PHP and DEB (AR) Files.

wow! it works! Thanks for that Shawn! I've got a new Problem with this... After I unpack the .DEB file, I also decompress the TAR files with gzip. One of the Tar files have a "postinst" file which chmods my directory to 777, thus giving me 500 errors. Here is what im doing: exec("gzi...
by mofolo
Thu Dec 10, 2009 1:36 am
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

Re: PHP and DEB (AR) Files.

wow! it works!

Thanks for that Shawn!
by mofolo
Wed Dec 09, 2009 7:03 pm
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

Re: PHP and DEB (AR) Files.

Is there anyway of doing this thru php?
by mofolo
Mon Dec 07, 2009 10:28 pm
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

Re: PHP and DEB (AR) Files.

Thanks Shawn!

Could you link me to a tutorial that demonstrates the ar commands?
by mofolo
Mon Dec 07, 2009 8:38 am
Forum: PHP - Code
Topic: PHP and DEB (AR) Files.
Replies: 10
Views: 262

PHP and DEB (AR) Files.

Hey.

I'm working on a project that requires the breakdown of Deb files.

Basically, all I need to do is extract the "icon.png" from the deb file.

Is it possible with PHP? I've tried searching - googling, everything.

Thanks.