Processing Summary:

Path (three different ways) [details...]

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]: admin
path[2]: web
path[3]: centrewebdesign.com
path[4]: public_html
path[5]: anniedebrowsa
buildByComp (dynamic hostname)
https://centrewebdesign.com/
concatThis
https://centrewebdesign.com//anniedebrowsa
concatSwitch
https://

@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

Twerkin Path

Leave Subdomain at [none] if none exists.

Raw Path:

Try a new path. Make new links

Server Info


__FILE__ info shown: /home/admin/web/centrewebdesign.com/public_html/anniedebrowsa/src/View/Main.page.phtml

ABSPATHHTML:

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

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

PHP Version: 8.3.21

Server Name: centrewebdesign.com

Server Addr: 65.19.154.77