You are here: Re: Can anyone tell me why this doesnt work please « PHP Programming Language « IT news, forums, messages
Re: Can anyone tell me why this doesnt work please

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.)

 

Navigation:

[Reply to this 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

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