Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Problem z zaincludowaniemiem pliku
Forum PHP.pl > Forum > PHP
jasiek65
Mam problem z zaincludowaniem pliku otóż mam taki kod w index.php

  1. <?php
  2. // zmienna potrzebna do prawidlowego wczytania includowanych plikow
  3. $add_site = true;
  4. ?>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  6. <html>
  7. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" />
  8. <meta http-equiv="Reply-to" content="l" />
  9. <meta name="Author" content="" />
  10. <head>
  11. <title>moja stronka</title>
  12. <style type="text/css">
  13. <!--
  14.  
  15. body {
  16. font-family: Verdana, Arial;
  17. font-size: 12px;
  18. }
  19.  
  20. -->
  21. </style>
  22. </head>
  23. <body>
  24. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  25. <tr>
  26. <td width="100%" colspan="3"><?php include "include/naglowek.php"; ?></td>
  27. </tr>
  28. <tr>
  29.  
  30. <td width="70%" valign="top">
  31. <?php
  32. $go = $_GET['go'];
  33.  
  34. switch($go) {
  35.  
  36. case "1": include "page/1.php"; break;
  37. case "2": include "mojastronka/index.php"; break; // tą strone chcę zaincludować
  38. case "3": include "page/2.html"; break;
  39. case "4": include "page/4.html"; break;
  40. case "5": include "page/5.html"; break;
  41. }
  42.  
  43. ?>
  44.  
  45. </tr>
  46. <tr>
  47. <td width="100%" colspan="3"><?php include "include/stopka.php"; ?></td>
  48. </tr>
  49. </table>
  50. </body>
  51. </html>



a zawartość pliku mojastronka/index.php

  1.  
  2.  
  3.  
  4.  
  5. <?php
  6.  
  7. // Help prevent register_globals injection
  8. define('ATSPHP', 1);
  9. $CONF = array();
  10. $FORM = array();
  11. $TMPL = array();
  12.  
  13. // Change the path to your full path if necessary
  14. $CONF['path'] = '.';
  15. $TMPL['version'] = '';
  16. // Set to 1 to display SQL queries and GET/POST/COOKIE data
  17. $CONF['debug'] = 0;
  18.  
  19. // Require some classes and start the timer
  20. require_once("{$CONF['path']}/sources/misc/classes.php");
  21. $TIMER = new timer;
  22.  
  23. // Connect to the database
  24. // Set the last argument of $DB->connect to 1 to enable debug mode
  25. require_once("{$CONF['path']}/settings_sql.php");
  26. require_once("{$CONF['path']}/sources/sql/{$CONF['sql']}.php");
  27. $DB = "sql_{$CONF['sql']}";
  28. $DB = new $DB;
  29. $DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database'], $CONF['debug']);
  30.  
  31. // Settings
  32. $settings = $DB->fetch("SELECT * FROM {$CONF['sql_prefix']}_settings", __FILE__, __LINE__);
  33. $CONF = array_merge($CONF, $settings);
  34.  
  35. $ad_breaks = explode(',', $CONF['ad_breaks']);
  36. $CONF['ad_breaks'] = array();
  37. foreach ($ad_breaks as $key => $value) {
  38. $CONF['ad_breaks'][$value] = $value;
  39. }
  40.  
  41. $result = $DB->query("SELECT category, skin FROM {$CONF['sql_prefix']}_categories ORDER BY category", __FILE__, __LINE__);
  42. while (list($category, $skin) = $DB->fetch_array($result)) {
  43. $CONF['categories'][$category] = $skin;
  44. }
  45.  
  46. $CONF['skins_path'] = "{$CONF['path']}/skins";
  47. $CONF['skins_url'] = "{$CONF['list_url']}/skins";
  48. $TMPL['skins_url'] = $CONF['skins_url'];
  49. $TMPL['list_name'] = $CONF['list_name'];
  50. $TMPL['list_url'] = $CONF['list_url'];
  51.  
  52. // Combine the GET and POST input
  53. $FORM = array_merge($_GET, $_POST);
  54.  
  55. // The language file
  56. require_once("{$CONF['path']}/languages/{$CONF['default_language']}.php");
  57.  
  58. // Determine the category and skin
  59. if (isset($FORM['cat']) && isset($CONF['categories'][$FORM['cat']])) {
  60. $TMPL['skin_name'] = $CONF['categories'][$FORM['cat']];
  61. }
  62. else {
  63. $TMPL['skin_name'] = $CONF['default_skin'];
  64. }
  65. if (!is_dir("{$CONF['path']}/skins/{$TMPL['skin_name']}/") || !$TMPL['skin_name']) {
  66. $TMPL['skin_name'] = $CONF['default_skin'];
  67. }
  68. if (!is_dir("{$CONF['path']}/skins/{$CONF['default_skin']}/")) {
  69. $TMPL['skin_name'] = 'fusion';
  70. }
  71. require_once("{$CONF['path']}/sources/misc/skin.php");
  72.  
  73. // Is it a new day/week/month?
  74. list($last_new_day, $last_new_week, $last_new_month, $TMPL['original_version']) = $DB->fetch("SELECT last_new_day, last_new_week, last_new_month, original_version FROM {$CONF['sql_prefix']}_etc", __FILE__, __LINE__);
  75. $time = time() + (3600*$CONF['time_offset']);
  76. $current_day = date('d', $time);
  77. $current_week = date('W', $time);
  78. $current_month = date('m', $time);
  79. if ($last_new_day != $current_day) {
  80. require_once("{$CONF['path']}/sources/misc/new_day.php");
  81. new_day($current_day);
  82. }
  83. if ($last_new_week != $current_week) {
  84. require_once("{$CONF['path']}/sources/misc/new_day.php");
  85. new_week($current_week);
  86. }
  87. if ($last_new_month != $current_month) {
  88. require_once("{$CONF['path']}/sources/misc/new_day.php");
  89. new_month($current_month);
  90. }
  91.  
  92. // Adjust the output text based on days, weeks, or months
  93. if ($CONF['ranking_period'] == 'weekly') {
  94. $LNG['g_this_period'] = $LNG['g_this_week'];
  95. $LNG['g_last_period'] = $LNG['g_last_week'];
  96. }
  97. elseif ($CONF['ranking_period'] == 'monthly') {
  98. $LNG['g_this_period'] = $LNG['g_this_month'];
  99. $LNG['g_last_period'] = $LNG['g_last_month'];
  100. }
  101. else {
  102. $LNG['g_this_period'] = $LNG['g_today'];
  103. $LNG['g_last_period'] = $LNG['g_yesterday'];
  104. }
  105.  
  106. // Check if installer is there
  107. if (file_exists("{$CONF['path']}/install/")) {
  108. $TMPL['header'] = $LNG['g_error'];
  109. $base = new base;
  110. $base->error($LNG['g_delete_install']);
  111. }
  112.  
  113. // Check for hits in
  114. require_once("{$CONF['path']}/sources/in.php");
  115. $in = new in;
  116.  
  117. // Array containing the valid .php files from the sources directory
  118. $action = array(
  119. 'admin' => 1,
  120. 'in' => 1,
  121. 'join' => 1,
  122. 'lost_pw' => 1,
  123. 'out' => 1,
  124. 'page' => 1,
  125. 'rankings' => 1,
  126. 'rate' => 1,
  127. 'search' => 1,
  128. 'stats' => 1,
  129. 'user_cpl' => 1
  130. );
  131.  
  132. // Require the appripriate file
  133. if (isset($FORM['a']) && isset($action[$FORM['a']])) {
  134. $page_name = $FORM['a'];
  135. }
  136. else {
  137. $page_name = 'rankings';
  138. }
  139.  
  140. require_once("{$CONF['path']}/sources/{$page_name}.php");
  141. $page = new $page_name;
  142.  
  143. // Display the page
  144. $skin = new main_skin('wrapper');
  145. echo $skin->make();
  146.  
  147. $DB->close();
  148.  
  149. // Print out debugging info, if necessary
  150. if ($CONF['debug']) {
  151. echo '<div style="clear: both;">';
  152. foreach ($DB->queries as $value) {
  153. echo "<hr /><pre>{$value}</pre>";
  154. }
  155. echo '<hr /><pre>';
  156. print_r($_REQUEST);
  157. echo '</pre>';
  158. echo '</div>';
  159. }
  160. ?>
  161.  
  162.  
  163.  



korzystam w tej stronie z systemu toplistowego jak zapewne widać.


Czy może ten skrypt blokować include ?

Prosze o pomoc i z góry dziękuję rolleyes.gif
zend
ini_set('display_errors' , 'On'); - to daj na początku głównego skryptu i podaj wyniki, możesz też sprawdzić scieżki -> echo get_include_path();
jasiek65
Oto błąd:


Kod
Warning: require_once(./sources/misc/classes.php) [function.require-once]: failed to open stream: No such file or directory in ścieżka moja\wwwroot\htdocs\moja stronka\index.php on line 17

Fatal error: require_once() [function.require]: Failed opening required './sources/misc/classes.php' (include_path='.;ścieżka\php\pear;ścieżka\addons\adodb;ścieżka\addons\adodb\session;ścieżka\addons\smarty\libs') in ścieżka\wwwroot\htdocs\moja stronka\index.php on line 17




To plik classes.php

  1. <?php
  2.  
  3.  
  4. if (!defined('ATSPHP')) {
  5. die("This file cannot be accessed directly.");
  6. }
  7.  
  8. class base {
  9. function error($message, $skin = 0) {
  10. global $TMPL;
  11.  
  12. $TMPL['error'] = $message;
  13. if ($skin) {
  14. $TMPL["{$skin}_content"] = $this->do_skin('error');
  15. $TMPL['content'] = $this->do_skin($skin);
  16. }
  17. else {
  18. $TMPL['content'] = $this->do_skin('error');
  19. }
  20.  
  21. $skin = new main_skin('wrapper');
  22. echo $skin->make();
  23. }
  24.  
  25. function do_skin($filename) {
  26. $skin = new skin($filename);
  27. return $skin->make();
  28. }
  29.  
  30. function rank_by($ranking_method = 0, $ranking_period = 0) {
  31. global $CONF;
  32.  
  33. if (!$ranking_method) {
  34. $ranking_method = $CONF['ranking_method'];
  35. }
  36. if (!$ranking_period) {
  37. $ranking_period = $CONF['ranking_period'];
  38. }
  39.  
  40. if ($ranking_period == 'overall') {
  41. $rank_by = "unq_{$ranking_method}_overall";
  42. }
  43. elseif (!$CONF['ranking_average']) {
  44. $rank_by = "unq_{$ranking_method}_0_{$ranking_period}";
  45. }
  46. else {
  47. $rank_by = '(';
  48. for ($i = 0; $i < 10; $i++) {
  49. $rank_by .= "unq_{$ranking_method}_{$i}_{$ranking_period} + ";
  50. }
  51. $rank_by .= "0) / 10";
  52. }
  53.  
  54. return $rank_by;
  55. }
  56.  
  57. function bad_words($text) {
  58. global $CONF, $DB;
  59.  
  60. $result = $DB->query("SELECT word, replacement, matching FROM {$CONF['sql_prefix']}_bad_words", __FILE__, __LINE__);
  61. while (list($word, $replacement, $matching) = $DB->fetch_array($result)) {
  62. if ($matching) { // Exact matching
  63. $word = preg_quote($word);
  64. $text = preg_replace("/\b{$word}\b/i", $replacement, $text);
  65. }
  66. else { // Global matching
  67. $word = preg_quote($word);
  68. $text = preg_replace("/{$word}/i", $replacement, $text);
  69.  
  70. // str_ireplace() would be faster, but it's only in PHP 5 :(
  71. // $text = str_ireplace($word, $replacement, $text);
  72. }
  73. }
  74.  
  75. return $text;
  76. }
  77. }
  78.  
  79. class in_out extends base {
  80. function record($username, $in_out) {
  81. global $CONF, $DB, $TMPL;
  82.  
  83. if ($in_out != 'in' && $in_out != 'out') {
  84. return 0;
  85. }
  86.  
  87. // Is this a unique hit?
  88. $ip = $DB->escape($_SERVER['REMOTE_ADDR'], 1);
  89. list($ip_sql, $unq) = $DB->fetch("SELECT ip_address, unq_{$in_out} FROM {$CONF['sql_prefix']}_ip_log WHERE ip_address = '$ip' AND username = '{$username}'", __FILE__, __LINE__);
  90.  
  91. $unique_sql = ", unq_{$in_out}_overall = unq_{$in_out}_overall + 1, unq_{$in_out}_0_daily = unq_{$in_out}_0_daily + 1, unq_{$in_out}_0_weekly = unq_{$in_out}_0_weekly + 1, unq_{$in_out}_0_monthly = unq_{$in_out}_0_monthly + 1";
  92. if ($ip == $ip_sql && $unq == 0) {
  93. $DB->query("UPDATE {$CONF['sql_prefix']}_ip_log SET unq_{$in_out} = 1 WHERE ip_address = '{$ip}' AND username = '{$username}'", __FILE__, __LINE__);
  94. }
  95. elseif ($ip != $ip_sql) {
  96. $DB->query("INSERT INTO {$CONF['sql_prefix']}_ip_log (ip_address, username, unq_{$in_out}) VALUES ('{$ip}', '{$username}' ,1)", __FILE__, __LINE__);
  97. }
  98. else {
  99. $unique_sql = '';
  100. }
  101.  
  102. // Update stats
  103. $DB->query("UPDATE {$CONF['sql_prefix']}_stats SET tot_{$in_out}_overall = tot_{$in_out}_overall + 1, tot_{$in_out}_0_daily = tot_{$in_out}_0_daily + 1, tot_{$in_out}_0_weekly = tot_{$in_out}_0_weekly + 1, tot_{$in_out}_0_monthly = tot_{$in_out}_0_monthly + 1{$unique_sql} WHERE username = '{$username}'", __FILE__, __LINE__);
  104.  
  105. return 1;
  106. }
  107. }
  108.  
  109. class join_edit extends base {
  110. function check_input($type) {
  111. global $CONF, $DB, $FORM, $LNG, $TMPL;
  112.  


  1. $error_username = 0;
  2. $error_username_duplicate = 0;
  3. $error_password = 0;
  4. $error_confirm_password = 0;
  5. $error_url = 0;
  6. $error_email = 0;
  7. $error_title = 0;
  8. $error_banner_url = 0;
  9. $error_captcha = 0;
  10. $error_security_question = 0;
  11.  
  12. // Filter the URL using a regex I found here: <a href="http://www.manamplified.org/archives/000318.html" target="_blank">http://www.manamplified.org/archives/000318.html</a>
  13. preg_match('/[A-Za-z][A-Za-z0-9+.-]{1,120}:[A-Za-z0-9\/](([A-Za-z0-9$_.+!*,;\/?:@&~=-])|%[A-Fa-f0-9]{2}){1,333}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*,;\/?:@&~=%-]{0,1000}))?/', $TMPL['url'], $matches);
  14. $TMPL['url'] = isset($matches[0]) ? $matches[0] : $TMPL['url'];
  15. preg_match('/[A-Za-z][A-Za-z0-9+.-]{1,120}:[A-Za-z0-9\/](([A-Za-z0-9$_.+!*,;\/?:@&~=-])|%[A-Fa-f0-9]{2}){1,333}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*,;\/?:@&~=%-]{0,1000}))?/', $TMPL['banner_url'], $matches);
  16. $TMPL['banner_url'] = isset($matches[0]) ? $matches[0] : $TMPL['banner_url'];
  17.  
  18. if ($type == 'join') {
  19. if (!preg_match('/^[a-zA-Z0-9\-_]+$/', $FORM['u'])) {
  20. $error_username = 1;
  21. }
  22. list($username_sql) = $DB->fetch("SELECT username FROM {$CONF['sql_prefix']}_sites WHERE username = '{$TMPL['username']}'", __FILE__, __LINE__);
  23. if ($username_sql && $username_sql == $TMPL['username']) {
  24. $error_username_duplicate = 1;
  25. }
  26. if (!$FORM['password']) {
  27. $error_password = 1;
  28. }
  29. if ($FORM['password'] != $FORM['confirm_password']) {
  30. $error_confirm_password = 1;
  31. }
  32. if ($CONF['captcha']) {
  33. $ip = $DB->escape($_SERVER['REMOTE_ADDR'], 1);
  34. list($sid) = $DB->fetch("SELECT sid FROM {$CONF['sql_prefix']}_sessions WHERE type = 'captcha' AND data LIKE '{$ip}|%'", __FILE__, __LINE__);
  35. require_once("{$CONF['path']}/sources/misc/session.php");
  36. $session = new session;
  37. list($type, $data) = $session->get($sid);
  38. list($ip, $hash) = explode('|', $data);
  39. if (!isset($FORM['captcha']) || $hash != sha1(')F*RJ@FHR^%X'.$FORM['captcha'].'(*Ht3h7f9&^F'.$ip)) {
  40. $error_captcha = 1;
  41. }
  42. $session->delete($sid);
  43. }
  44. if ($CONF['security_question'] && $CONF['security_answer']) {
  45. if ($FORM['security_answer'] != $CONF['security_answer']) {
  46. $error_security_question = 1;
  47. }
  48. }
  49. }
  50. if (!preg_match('/^https?:\/\/.+/', $TMPL['url'])) {
  51. $error_url = 1;
  52. }
  53. if (!preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9._-]+)+$/', $TMPL['email'])) {
  54. $error_email = 1;
  55. }
  56. if (!$TMPL['title']) {
  57. $error_title = 1;
  58. }
  59. if (!preg_match('/^https?:\/\/.+/', $TMPL['banner_url'])) {
  60. $TMPL['banner_url'] = $CONF['default_banner'];
  61. }
  62. elseif ($CONF['max_banner_width'] && $CONF['max_banner_height'] && ini_get('allow_url_fopen')) {
  63. $size = getimagesize($FORM['banner_url']);
  64. if ($size[0] > $CONF['max_banner_width'] || $size[1] > $CONF['max_banner_height']) {
  65. $error_banner_url = 1;
  66. }
  67. if (!isset($size[0]) && !isset($size[1])) { $error_banner_url = 1; }
  68. }
  69.  
  70. $good_cat = 0;
  71. foreach ($CONF['categories'] as $cat => $skin) {
  72. if ($TMPL['category'] == $cat) {
  73. $good_cat = 1;
  74. }
  75. }
  76. if (!$good_cat) {
  77. $TMPL['category'] = $cat;
  78. }
  79.  
  80. if ($error_username || $error_username_duplicate || $error_password || $error_confirm_password || $error_url || $error_email || $error_title || $error_banner_url || $error_captcha || $error_security_question) {
  81. if ($error_username) {
  82. $TMPL['error_username'] = "<br />{$LNG['join_error_username']}";
  83. $TMPL['error_style_username'] = 'join_edit_error';
  84. }
  85. if ($error_username_duplicate) {
  86. $TMPL['error_username'] = "<br />{$LNG['join_error_username_duplicate']}";
  87. $TMPL['error_style_username'] = 'join_edit_error';
  88. }
  89. $TMPL['error_password'] = "<br />{$LNG['join_error_password']}";
  90. $TMPL['error_style_password'] = 'join_edit_error';
  91. if ($error_confirm_password) {
  92. $TMPL['error_password'] = "<br />{$LNG['join_error_confirm_password']}";
  93. }
  94. if ($error_url) {
  95. $TMPL['error_url'] .= "<br />{$LNG['join_error_url']}";
  96. $TMPL['error_style_url'] = 'join_edit_error';
  97. }
  98. if ($error_email) {
  99. $TMPL['error_email'] .= "<br />{$LNG['join_error_email']}";
  100. $TMPL['error_style_email'] = 'join_edit_error';
  101. }
  102. if ($error_title) {
  103. $TMPL['error_title'] .= "<br />{$LNG['join_error_title']}";
  104. $TMPL['error_style_title'] = 'join_edit_error';
  105. }
  106. if ($error_banner_url) {
  107. $TMPL['error_banner_url'] .= "<br />{$LNG['join_error_urlbanner']}";
  108. $TMPL['error_style_banner_url'] = 'join_edit_error';
  109. }
  110. $TMPL['error_style_captcha'] = 'join_edit_error';
  111. if ($error_captcha) {
  112. $TMPL['error_captcha'] .= "<br />{$LNG['join_error_captcha']}";
  113. }
  114. if ($error_security_question) {
  115. $TMPL['error_style_question'] = 'join_edit_error';
  116. $TMPL['error_question'] .= "<br />{$LNG['join_error_question']}";
  117. }
  118.  
  119. $TMPL['error_style_top'] = 'join_edit_error';
  120. $TMPL['error_top'] = $LNG['join_error_top'];
  121.  
  122. return 0;
  123. }
  124. else {
  125. return 1;
  126. }
  127. }
  128.  
  129. // This should be called before check_input
  130. function check_ban($type) {
  131. global $CONF, $DB, $FORM, $LNG, $TMPL;
  132.  
  133. $ban_url = 0;
  134. $ban_email = 0;
  135. $ban_username = 0;
  136. $ban_ip = 0;
  137.  
  138. if ($type == 'join') { $fields = array('url', 'email', 'username', 'ip'); }
  139. elseif ($type == 'edit') { $fields = array('url', 'email'); }
  140. elseif ($type == 'review') { $fields = array('ip'); }
  141.  
  142. $TMPL['ip'] = $DB->escape($_SERVER['REMOTE_ADDR'], 1);
  143.  
  144. $result = $DB->query("SELECT id, string, field, matching FROM {$CONF['sql_prefix']}_ban", __FILE__, __LINE__);
  145. while (list($id, $string, $field, $matching) = $DB->fetch_array($result)) {
  146. if (in_array($field, $fields)) {
  147. $string = preg_quote($string);
  148.  
  149. if ($matching) { $s = "^{$string}$"; } // Exact matching
  150. else { $s = $string; } // Global matching
  151.  
  152. if (preg_match("|{$s}|", $TMPL[$field])) {
  153. $ban_url = 1;
  154. }
  155. }
  156. }
  157.  
  158. if ($ban_url || $ban_email || $ban_username || $ban_ip) {
  159. $TMPL['error_style_top'] = 'join_edit_error';
  160. $TMPL['error_top'] = $LNG['join_ban_top'];
  161.  
  162. return 0;
  163. }
  164. else {
  165. return 1;
  166. }
  167. }
  168. }
  169.  
  170. class timer {
  171. var $start_time;
  172.  
  173. function timer () {
  174. $this->start_time = array_sum(explode(' ', microtime()));
  175. }
  176.  
  177. function get_time () {
  178. $current_time = array_sum(explode(' ', microtime()));
  179. return round($current_time - $this->start_time, 5);
  180. }
  181. }
  182. ?>


zend
Tu wcale nie o to chodzi jak ten plik wygląda, tylko o jego położenie względem index.php, jeśli index masz powiedzmy w public_html => public_html/index.php, to rządany plik musi być w public_html/sources/misc/classes.php. "../" - wym poleceniem wyskakujesz katalog wyżej np ../classes/class.php odwołuje się do katalogu równorzędnego dla public_html. Kapito? Aaa i jeszcze trzymaj się jednego formatu, jeśli jesteś na linuxie to "/", a jak windows to "\", a nie mieszaj tak jak teraz \ & /
em1X
Dlatego zamiast pisać
  1. include 'include/stopka.php';


trzeba pisać
  1. include dirname(__FILE__).'/include/stopka.php';


co wyelimuje koniecznosc pisania pelnej sciezki tongue.gif
zend
Cytat(em1X @ 27.05.2010, 18:07:11 ) *
Dlatego zamiast pisać
  1. include 'include/stopka.php';
trzeba pisać
  1. include dirname(__FILE__).'/include/stopka.php';
co wyelimuje koniecznosc pisania pelnej sciezki tongue.gif

Yyy, jak dla mnie masło maślane bo itak efekt bedzie ten sam smile.gif

@down - to samo co napisałem w moim poprzednim poscie, możesz podać też strukturę katalogów w aplikacji
jasiek65
to co mam zrobić?

jak to zrobić wiem pliki pokolei edytuje ale woałbym wpisać w adres zmienną

Kod
\php\pear;\addons\adodb;
\addons\adodb\session;
\addons\smarty\libs
zend
Poprawna struktura powinna wyglądać tak:
strona/index.php
strona/sources/misc/classes.php
Spróbuj jeszcze dodać na początku
  1. set_include_path(get_include_path() . PATH_SEPARATOR . '\\');
  2. //albo
  3. set_include_path(get_include_path() . PATH_SEPARATOR . '.\\');
  4. //nie wiem jak jest na windowsie

Pozbądź się też spacji z nazwy katalogów, bo więcej psują niż pomagają
jasiek65
zrobiłem to zapomocą ramki i wszystko ok snitch.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.