Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak zbudować strone na php z folderami w folderach?, codanie include do głownej strony
pawel_wolomin
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 10.08.2008

Ostrzeżenie: (0%)
-----


Witam mam problem ze stworzeniem strony od podstaw.

w głownym indexie strony includuje menu, stopkę, a w dalsze podstrony znajdują się w folderach te w pierwszym folderze działają jak użyje ../ ale juz foldery w nich nie:(
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
pawel_wolomin
post
Post #2





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 10.08.2008

Ostrzeżenie: (0%)
-----


index.php w głownym folderze
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  5. <meta http-equiv="Content-Language" content="pl" />
  6. <meta name="Keywords" content="..." />
  7. <meta name="Description" content="..." />
  8. <meta name="Robots" content="ALL" />
  9. <meta name="Author" content="..." />
  10. <link rel="stylesheet" href="style.css" type="text/css" />
  11. <title>...</title>
  12. </head>
  13.  
  14. <html>
  15.  
  16.  
  17.  
  18.  
  19.  
  20. <body>
  21. <div id="container">
  22.  
  23. <div id="naglowek"></div>
  24.  
  25. <?php
  26. require_once("menu.php");
  27. ?>
  28.  
  29.  
  30.  
  31. <div id="srodek">
  32. <h2>WITAMY </h2>
  33. <p>...</p>
  34.  </div>
  35.  
  36. <?php
  37. require_once("analytics.php");
  38. ?>
  39.  
  40. <?php
  41. require_once("stopka.php");
  42. ?>
  43.  
  44.  
  45.  
  46.  cos/index.php w podfolderze
  47. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  48.  
  49. <head>
  50. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  51. <meta http-equiv="Content-Language" content="pl" />
  52. <meta name="Keywords" content="..." />
  53. <meta name="Description" content="..." />
  54. <meta name="Robots" content="ALL" />
  55. <meta name="Author" content="..." />
  56. <link rel="stylesheet" href="../style.css" type="text/css" />
  57. <title>...</title>
  58. </head>
  59.  
  60. <html>
  61.  
  62.  
  63.  
  64.  
  65.  
  66. <body>
  67. <div id="container">
  68.  
  69. <div id="naglowek"></div>
  70.  
  71. <?php
  72. require_once("../menu.php");
  73. ?>
  74.  
  75.  
  76.  
  77. <div id="srodek">
  78. <h2>WITAMY </h2>
  79. <p>...</p>
  80.  </div>
  81.  
  82. <?php
  83. require_once("../analytics.php");
  84. ?>
  85.  
  86. <?php
  87. require_once("../stopka.php");
  88. ?>

problem zaczyna sie w cos/cos2/index.php

folderów uzywam by tryzmac pożadek na ftp

Ten post edytował kwiateusz 10.08.2008, 21:33:43
Powód edycji: używaj bbcode
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.10.2025 - 11:22