Page 1 of 1

XAMPP install path

PostPosted: 03. March 2010 20:21
by cthackers
Hi. I'm trying to develop a Xampp helper tool to manage Apache virtual hosts and i want to know how can i determine the location where xampp is installed without scanning the user drives :) The thing is that if I download any Xampp add-on from the website, the installers figure it out immediately where it was installed. And I searched my registry and found no trace of it - except the apache2.2 service but i cannot be sure other users will install Apache as a service so, that's not useful. anyone knows how to do that ? would save a poor programmer a lot of head ache :) Thanks all.

Re: XAMPP install path

PostPosted: 04. March 2010 19:24
by WilliL
i suggest you to give the choice to user or if written in php there's
$_SERVER['DOCUMENT_ROOT']: C:/xampp/htdocs
$xampp_path=substr($_SERVER['DOCUMENT_ROOT'],0,9);

Re: XAMPP install path

PostPosted: 05. March 2010 08:11
by cthackers
yeah, I know that, but this is not a php script, is a windows desktop application