<article class="post">
<h2 class="entry-title"><a href="#">ДОМ СКАЗОК-ИГРОВАЯ КОМНАТА</a></h2>
<figure>
<a href="images/thumbnail.jpg" rel="lightbox" title=""><img src="images/thumbnail.jpg" alt="Post thumbnail" class="thumbnail alignleft" /></a>
</figure>
<div class="entry-content">
<p>
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.
Separated they live in <a href="#">Bookmarksgrove right at the coast of the Semantics</a>, a large language ocean.
A small river named Duden flows by their place and supplies it with the necessary regelialia.
It is a paradisematic country, in which roasted parts of sentences fly into your mouth.
</p>
<p>
Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life.
One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.
</p>
</div> <!-- .entry-content -->
<footer class="post-meta">
<a href="#" class="more-link">Read more</a>
</footer> <!-- .post-meta -->
</article>
код
так вот...<?php
$url = ($_SERVER['REQUEST_URI']);
print_r(parse_url($url));
echo parse_url($url, PHP_URL_PATH);
?>
что бы типа этого...Array ( [path] => /photo.php [query] => m001 ) /photo.php
<?php
$url = ($_SERVER['REQUEST_URI']);
include '"services/".[query].".php"';
?>
если это просто текст, то не надо называть его php
переименуй эти файлы в .html
И НИКАКИХ ИНКЛЮДОВ!
PHP:$file="services/".basename($_GET['post']).".html"; if (is_readable($file)) { readfile($file); } else { echo "<br>Запрошенный файл не найден<br>"; }
<?php
$file="services/".basename($_GET['post']).".php";
if (is_readable($file)) {
readfile($file);
} else {
include 'services/m001.php';
include 'services/m002.php';
include 'services/m003.php';
include 'services/m004.php';
include 'services/m005.php';
include 'services/m006.php';
include 'services/m007.php';
include 'services/m008.php';
include 'services/m009.php';
include 'services/m010.php';
include 'services/m011.php';
include 'services/m012.php';
include 'services/m013.php';
}
?>