Convert System Path to HTTP URL
ENV:
ABSPATHHTML:
Uses PHP Variables like
define( INSTALLED_LOCATION , dirname(__FILE__)). E.g. See ABSPATH in WordPress.ABSPATHHTML:
define( INSTALLED_LOCATION , dirname(__FILE__)). E.g. See ABSPATH in WordPress.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.Enter system path / submit:
Leave Subdomain at [none] if none exists.
The value derived here, set as goUp[url], should be placed as the first <li> item in the primary navigation list
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