My PHP class has a CMS class that I store various things I need to work with such as base1, base2, section, and page variables. Here is a localhost example broken down...
http://localhost/Version%202.9.A.3/web/css3
$cms->base1 = http://localhost
$cms->base2 = /Version%202.9.A.3/
$cms->section = web
$cms->page = css3
Echoed altogether...
Code: Select all
echo $cms->base1.$cms->base2.$cms->section.'/'.$cms->pageThe following works though I'd like to plug any holes if they may exist...
Code: Select all
<meta content="4;url=<?php echo $_GET['url'];?>" http-equiv="refresh" />