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

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -