HI
Im building a function in php which allows to create tables, I´m doing this with shell commands but I dont manage to exec any command in MySQL
m building a function in php which allows to create tables, I´m doing this with shell commands but I don
this work system("ls -l");
but this don`t system("mysql -h blabla -u blabla -pbla");
I had a similar problem trying to use the ping program from PHP. Something like % ping [host] would work but when I tried to do it from PHP using something like exec('ping [host]'); I would get no output. What I found to be the solution for me is that the PHP user (i.e. usually "nobody") did not have the path set for the ping program, so it threw an error using exec('ping [host]') and didn't return anything. therefore, i found out which directory the ping program was in (in my case i think it was in /usr/bin/) and then set the path absolutely in the program call, like: exec("/usr/bin/ping $host -c $count"); or something similar to that...which worked... to sum up...try to set the path to the program you are trying to access absolutely, and see if that works justin