Hi guys,
I need to run Shell_exec to import a dump into my MYSQL database. Today I do this:
$shellExec = 'C:\wamp\bin\mysql\mysql5.1.36\bin\mysql -h localhost -u root mertero_decicare < D:\localhost\sql\decisions.sql';
$out = shell_exec($shellExec .' 2> output');
Which works. But is there a way to 'find' the location of the mysql executable from PHP? SO I don't need to hardcaord my mysql location?
Ron