XAMPP install path

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP install path

Postby cthackers » 03. March 2010 20:21

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.
cthackers
 
Posts: 14
Joined: 03. March 2010 20:06

Re: XAMPP install path

Postby WilliL » 04. March 2010 19:24

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);
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: XAMPP install path

Postby cthackers » 05. March 2010 08:11

yeah, I know that, but this is not a php script, is a windows desktop application
cthackers
 
Posts: 14
Joined: 03. March 2010 20:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests