Just incase anyone else is looking for the answer, the problem was solved
thus:
exec("/usr/local/mysql/bin/mysqlimport --replace --fields-terminated-by=\| -
-user=testuser --password=testpassword testdb
/home/testdomain/www/Admin/test_mysqltable.txt");
It just needed a path to the mysqlimport command...
Keith
- Original Message -
From: "Keith Spiller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 6:51 PM
Subject: [PHP-DB] mysqlimport
Hello,
I'm trying to use:
passthru("mysqlimport --replace --fields-terminated-by=\| --user=testuser --
password=testpassword testdb
/home/testdomain/www/Admin/test_mysqltable.txt", $output);
The mysqlimport command works perfectly at the telnet command prompt, but
never through Php.
When I echo $output I get '126' or '127'. But the process does not work.
I have also tried using system and exec commands.
Any suggestions? Thanks,
Keith
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]