Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Аз си мисля, че не може. Но пробвай така:tedo96 каза:Как в include да ползвам променлива?
include "$dir/file.php";
include ($dir."/file.php");
<?php
$string = get_include_contents('somefile.php');
function get_include_contents($filename) {
if (is_file($filename)) {
ob_start();
include $filename;
return ob_get_clean();
}
return false;
}
?>
Malfurion каза:PHP:<?php $dir = "test"; include($dir.'/testit.php'); ?>
бачка безотказно!
<?php require_once("dir/".$file.".php"); ?>
include($dir."/file.php");