Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

php MySQL Path

Is it possible in PHP to find out where the MySQL path is?

I have a program which uses mysqldump, but I have different servers Id like my php script to work on, all have php and mysql installed, but in different locations, so it would make it really easy to just pull in the path of mysql.

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of xBellox
xBellox

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
tonelm54

ASKER

On a windows platform?
No, unfortunately it won't work on a windows platform.

Try this instead:



<?php
 
  system("echo %MYSQL_HOME%", $mysqldumb_fullpath);
 
  echo $mysqldumb_fullpath;
 
?>

Open in new window