faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

62 of 69 people (90%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Why wont PHP 3 excute shell commands??? I have tried $string = system("/bin/tar -cf /home/www/backups/backup.tar /home/www/functions");

Feb 18th, 2008 19:28
dman, Pavel Prishivalko, Robert -, http://www.ttnr.org


Try:
$string = `/bin/tar -cf /home/www/backups/backup.tar /home/www/functions`;
NOTE: ` - is a backtick