Reply to Re: Can anyone tell me why this doesnt work please

Your name:

Reply:


Posted by Chris Parker on 12/04/53 11:57

nigel.t@by.uk wrote:
> Using linux
>
> <?php
> exec("/bin/tar -cvzf myfile.tgz /home/",$arrayout,$returnval);
> ?>
>
> or perhaps try it on your system and tell me if it does/doesnt and what
> your linux is?
>
> I've also tried
>
> <?php
> exec("/bin/tar -c * \| gzip \> myfile.tgz",$arrayout,$returnval);
> ?>
>
> Both work fine from the command line neither work at all from PHP
>
> -nigel-

Append this:

for ($i = 0; $i < count($arrayout); $i++) {
echo $arrayout[$i] . "\n";

}

and see what the command output is.

Chris

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация