How to get the path of the PHP BIN from PHP? -


how can bin path of php php? saw in phpinfo(); need method gets in linux , windows systems.

you can use:

$_server['_'] 

also constant

php_bindir gives directory php executable found.

sample on codepad , ideone

looks security reasons $_server values not exposed.( guess..plz correct me if i'm wrong).


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -