I'm trying to put the top of my page (which is all html) in a seperate file so I only need to change things once like the menu bar etc. So I googled some and found a solution on this website as well, but it doesn't work and I don't know why.
Yani article.html gibi bir sayfa var ve üstüne bu var:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<?php include("/pages/header.php"); ?>
<!-- rest of the html code -->
Header.php ben her sayfanın üstünde olmalıdır html var ve ile başlar:
<?php
/**
* @author name
* website header
*/
?>
<!-- html code -->
Peki bu sorun var. Ben sayfa article.html açın ve sağ kaynağını görüntülemek için üzerine tıkladığınızda, ben header.php dosyasını çağıran yukarıdaki php görebilirsiniz.
Teşekkürler!
Bilginize: Ben php sunucu üzerinde etkin olması
EDIT: Ben '.. / Sayfalar / header.php' dosya yolunu değiştirdi ve şimdi çalışıyor. Bu gibi çalışır neden hiçbir ipucu var ..?