| 
	
 | 
 Posted by nigel.t on 06/19/51 11:57 
In article <1157580853.031347.172630@i42g2000cwa.googlegroups.com>,  
mrcsparker@gmail.com says... 
>  
> 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 
>  
>  
 
Thanks Chris but I already have this which is how I know the array is  
empty. I'm getting more confused by the minute.  
 
-nigel-
 
  
Navigation:
[Reply to this message] 
 |