要在本地计算机上使用的基本URL

时间:2014-08-04 15:09:42

标签: php html url base

(xampp),我如何在本地计算机上使用。文件夹布局,

http://www.resimagaci.com/img/90rvnrf.png

ust.php

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
</head>
<body>

alt.php

</body>
</html>

sabitler.php

<?php
#sabitler
define('BASE_URL', 'base-url');
?>

的index.php

<?php
include 'kutuphane/sabitler.php';
?>
<?php
$ust= BASE_URL . '/kutuphane/ust.php';
$alt= BASE_URL . '/kutuphane/alt.php';
?>
<?php
include ($ust);
?>
<?php
include ($alt);
?>

0 个答案:

没有答案