system help!
| From: | Thomas \"omega\" Henning | Date: | Wed, 03 Jul 2002 16:54:16 +0000 |
| Subject: | system help! | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20304@lists.php.net to get a copy of this message | ||
hey all,
i have this
<?php
$today = getdate();
$month = $today['mon'];
$day = $today['mday'];
$year = $today['year'];
$date=$month."-".$day;
$command="mysqldump -uroot --password=***** iktato intrat2003 >tt.sql";
$test=system($command);
?>
When $command="mysqldump -uroot --password=***** iktato intrat2003 "; it
works and
when $command="mysqldump -uroot --password=***** iktato intrat2003 >tt.sql";
it doesn't work.
BUT!!!
i have made a consol script that runs a linux command from a normal input
text box. With that same command it executes it and makes the tt.sql. And im
not using exec() because i need to see the results of it thats why i use
system()
help pls
Thomas "omega" Henning