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

From: Date: Tue, 04 Sep 2001 01:02:34 +0000
Subject: Re: Re: probs with exec, pls help (still)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-65814@lists.php.net to get a copy of this message
On Mon, 3 Sep 2001 19:36, taz wrote: > 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 Have you checked that mysqlimport and the directory in which it resides has execute permissions for everyone? Also, check the contents of the array returned by exec, and also the return status of the command. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA IBM: It may be slow, but at least it's expensive.

« previous php.general (#65814) next »