MySQL Path Detection, Command Line
Posted
by swt83
on Stack Overflow
See other posts from Stack Overflow
or by swt83
Published on 2010-03-29T20:31:08Z
Indexed on
2010/03/29
20:33 UTC
Read the original article
Hit count: 232
I have a script that I want to run via command line. In setting up the command to run, I am trying to do a detection for the MySQL path. When I type "which mysql" in my terminal, I get an answer. When I run PHP --
$path = exec('which mysql');
-- I get nothing. If I do the same command for "which php" I get an answer, but not MySQL. Why would I get a response from terminal and not from PHP CLI on this?
© Stack Overflow or respective owner