Re: Re: probs with exec, pls help (still again)

From: Date: Wed, 05 Sep 2001 06:20:45 +0000
Subject: Re: Re: probs with exec, pls help (still again)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65994@lists.php.net to get a copy of this message
Are you using full path for every file? Are you sure you've got the correct syntax to MySQL doesn't prompt you for the password? Any messages in your HTTP error_log file? Use the optional args to exec() to get back any output and also an error code, and then use man errno to look up the error code. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Taz <terry@tazwebservices.co.uk> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Monday, September 03, 2001 9:58 AM Subject: Fw: [PHP] Re: probs with exec, pls help (still again) > > > > > > Hi > > > > I've put the full path in for mysql, i've included -h -u -p and included > the > > paths of the txt & table files > > > > Still don't work. > > > > I'm logged in as root, working on my own box (linux) . > > I'm really struggling with this one. > > Has anyone out there done this ?? > > > > Many TIA > > Terry > > ----- Original Message ----- > > From: "_lallous" <elias_bachaalany@yahoo.com> > > To: <php-general@lists.php.net> > > Sent: Monday, September 03, 2001 9:24 AM > > Subject: [PHP] Re: probs with exec, pls help > > > > > > > should'nt I guess.... > > > I should at least specify full path of mysqlimport as in: > > > exec("/usr/local/mysql/bin/mysqlimport -u -p dada dasda") > > > > > > "Taz" <terry@tazwebservices.co.uk> wrote in message > > > news:002801c133f3$1e2204e0$0feafea9@reynolds... > > > Should this work, if not, why not > > > > > > <?php exec("mysqlimport -u root -ppasword test one.txt") ?> > > > > > > the import works fine from the command line > > > > > > TIA > > > Terry > > > > > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > >

« previous php.general (#65994) next »