Can I include a file as a variable without it showing on the page?
What I want to do:
Include an HTML file and adjust the links to make it work from a different folder.
[PHP]$begin = "path to site root (hidden for security)";
$end = "_bolGallerySta ticPage.html";
$raw = include($begin. $row_Recordset1['url'].$end);
$search = "./";
$replace = $row_Recordset1['url'];
$test = str_replace ($search, $replace, $raw);
echo $test[/PHP]
Currently I cant set the $raw variable and only the original code shows.
Thanks from Russell!
What I want to do:
Include an HTML file and adjust the links to make it work from a different folder.
[PHP]$begin = "path to site root (hidden for security)";
$end = "_bolGallerySta ticPage.html";
$raw = include($begin. $row_Recordset1['url'].$end);
$search = "./";
$replace = $row_Recordset1['url'];
$test = str_replace ($search, $replace, $raw);
echo $test[/PHP]
Currently I cant set the $raw variable and only the original code shows.
Thanks from Russell!
Comment