Convert System Path to HTTP URL

ENV:

ABSPATHHTML:

Uses PHP Variables like define( INSTALLED_LOCATION , dirname(__FILE__)). E.g. See ABSPATH in WordPress.

Processing Summary

Path (three different ways) [collapse]

Using regular expressions and other syntax, the URL components which make up the path are separated and stored in an array, "path[]".

path[] is derived from $Eval->test_location($enterpathhere)['pb'];

  • buldByComp uses _SERVER[], path[], to build the resulting HTTP url.
  • concatThis uses that info but first removes some standard known paths in attempt to achive a more likely correct URL, and tends to be the most reliable of the three results.
  • concatSwitch employs the use of a switch case logic. This is usually garbage for some reason. All in the spirit of playing with code.

path[0]: home
path[1]: heliohost
path[2]: web
path[3]: forum
path[4]: rules-edit1.html

Try fix

Enter system path / submit:

Raw Path Used:

Twerkin Path

Leave Subdomain at [none] if none exists.

@ToDo

Nav-go-up thing

The value derived here, set as goUp[url], should be placed as the first <li> item in the primary navigation list

Server Info

Served by: Apache/2.4.58 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.13

PHP Version: 8.3.27

Server Name: whatsonyourbrain.com

Server Addr: 65.19.154.77