aLocal ('a' for auto) is a tiny JavaScript snippet which automatically updates the address bar to localhost - ready for server-side scripts.
- Follow this link and choose your download option or open your Git CLI and enter the following:
git clone https://github.com/thielicious/eMM.git
- Place this script in your root directory of your host.
- Open any PHP file which must be inside of the root path.
- Embed alocal.js in your page header just like any other linked script
<script src="http://localhost/aLocal.js"></script>
- Save it and done.
- .setPath(path) defines the root path, default: XAMPP folder
- .setLocal(server) defines your server, default: localhost
- .change() executes the change
Once embedded, it's ready to perform. Simply, open a PHP file in your browser, no need to alter the annoying address bar anymore. Not a special thing but a timesaver.