note 15212 added to function.system

From: Date: Fri, 31 Aug 2001 21:32:06 +0000
Subject: note 15212 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-17464@lists.php.net to get a copy of this message
All these 3 ways can create an xxx.sql file, but they are of 0 length. Any Idea? <? exec ("/pathto/mysqldump -u username -ppassword database table > one.sql;"); passthru("/pathto/mysqldump -u username -ppassword database table > two.sql;"); $command = "/path/mysqldump -u username -ppassword database table > three.sql;"; system( $command ); system("exit(0)"); ?> http://www.php.net/manual/en/function.system.php

« previous php.notes (#17464) next »