Re: exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin);

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can't say why you're not getting an error message, but when I have a valid
user, password, host, and sql in a .txt file, I get the last record from the
select statement I run output in the browser. Maybe start with getting it to
work with everything used correctly, then work backwards.

HTH,


On 10/25/06, Gert Cuykens <gert.cuykens@xxxxxxxxx> wrote:

when i do echo exec... i get a blank screen

(print_r $out i get Array() echo $bin i get 1)

On 10/25/06, David Giragosian <dgiragosian@xxxxxxxxx> wrote:
> What do you get if you run:
>
> echo exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin);
>
>
>
>
>
> On 10/25/06, Gert Cuykens <gert.cuykens@xxxxxxxxx> wrote:
> > actually something like 'asdadsuiashdiasdh' :) test.php is just some
> > text file i maybe should have renamed it to test.txt sorry.
> >
> > But the thing is i dont get any feedback like 'cant connect to host'
> > or 'invalid sql' etc.
> >
> > exec(mysqldump...) works but exec(mysql...) doesnt
> >
> > On 10/25/06, David Giragosian < dgiragosian@xxxxxxxxx> wrote:
> > > What is the SQL you are running in test.php?
> > >
> > > David
> > >
> > >
> > > On 10/25/06, Gert Cuykens <gert.cuykens@xxxxxxxxx > wrote:
> > > >
> > > > i do not get any output from mysql except form echo $bin that
displays
> 1 ?
> > > > <?php
> > > > exec("mysql -h hhh -u uuu -pppp < test.php",$out,$bin);
> > > > print_r($out);
> > > > echo $bin;
> > > > ?>
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> >
>
>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux