Re: exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin);
| From: | Gert Cuykens | Date: | Wed, 25 Oct 2006 20:03:46 +0000 |
| Subject: | Re: exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin); | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243626@lists.php.net to get a copy of this message | ||
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@gmail.com> 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@gmail.com> 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@gmail.com> wrote:What is the SQL you are running in test.php? David On 10/25/06, Gert Cuykens <gert.cuykens@gmail.com > wrote:1 ?i do not get any output from mysql except form echo $bin that displays<?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