USB Tips and Tricks (xampp using relative path)
Posted: 08. September 2006 05:33
If you want to install xampp on an USB using a different folder than the root, try adding the following line to install.php in \xampp\install folder
First look for this line
Then add this line right after that line
it'll remove the drive letter and the colon from the path.
M:\PROGRAMS\XAMPP -> \PROGRAMS\XAMPP
now run setup_xampp.bat
I AM NOT RESPONSIBLE FOR ANY DAMAGE TRYING THIS TRICK.
but it works for me
First look for this line
- Code: Select all
$partwampp = substr(realpath(__FILE__), 0, strrpos(dirname(realpath(__FILE__)), '\\'));
Then add this line right after that line
- Code: Select all
$partwampp = substr($partwampp, 2);
it'll remove the drive letter and the colon from the path.
M:\PROGRAMS\XAMPP -> \PROGRAMS\XAMPP
now run setup_xampp.bat
I AM NOT RESPONSIBLE FOR ANY DAMAGE TRYING THIS TRICK.
but it works for me