$paramURL="http://my.site/?q=%20test%20"
$targetURL ="http://my.site/?back_url=" . urlencode($paramURL);
<?php // main file, index.php
$i = 0;
...
// какая-то лигика здесь, и подготовка переменных для вывода на HTML
include(__DIR__.'template.phtml'); //внутри файла будет доступна $i
<!-- template file, template.phtml -->
<html>
<body>i = <?= $i =></body>
</html>
@media (min-width:900px) and (max-width:1300px) {
.need-hide{
display:none;
}
}