This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Script that shows how to insert a basepath on HTML tags | |
* It looks for link, script and img tags that do not contain the | |
* determined basepath or a external URL | |
*/ | |
// BasePath to insert in string when necessarry | |
$basePath = "/project/site/"; | |
$escapedBasePath = str_replace("/", "\/", $basePath); |