Posted by Petr Vileta on 12/16/78 11:57
<nigel.t@by.uk> wrote in
news:MPG.1f68e3133d5c070c9898fe@news-text.blueyonder.co.uk...
>
> Using linux
>
> <?php
> exec("/bin/tar -cvzf myfile.tgz /home/",$arrayout,$returnval);
> ?>
>
Try to use singe quote instead the double quote. I'm no sure if this is the
same in PHP as is in Perl but in Perl double quote evaluate something but
single quote don't.
Example in Perl:
$name = "nigel";
print "Hallo $name";
>Hallo nigel
$name = "nigel";
print 'Hallo $name';
>Hallo $name
Maybe is some similar in PHP.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
[Back to original message]
|