Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Problem z subdomeną...
Konuss
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 21.07.2005
Skąd: Konin

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


Witam ,

mam pewien problem z integracją serwisu z forum. Problem dotyczy subdomen. Gdy serwis znajduję się w domenie yolo.pl/pliki to wszystko ładnie śmiga na tym kodzie:
  1. define('IN_PHPBB', true);
  2.  
  3. $phpbb_root_path = './forum/';
  4.  
  5. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  6.  
  7. include($phpbb_root_path . 'common.' . $phpEx);
  8.  
  9. include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
  10.  
  11.  
  12.  
  13. $user->session_begin();
  14.  
  15. $auth->acl($user->data);


ale gdy serwis znajduje się w subdomenie tzn pliki.yolo.pl tez dziala ale na tym kodzie:
  1. define('IN_PHPBB', true);
  2.  
  3. $phpbb_root_path = '../forum/';
  4.  
  5. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  6.  
  7. include($phpbb_root_path . 'common.' . $phpEx);
  8.  
  9. include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
  10.  
  11.  
  12.  
  13. $user->session_begin();
  14.  
  15. $auth->acl($user->data);


problem polega na tym że wszystko fajnie smiga lecz subdomena przejmuje linki tzn:

http://pliki.yolo.pl/forum/memberlist.php

a powinno być:

http://yolo.pl/forum/memberlist.php

każdy link w serwisie jesli chodzi o forum ma taką formę:

  1. '.$phpbb_root_path.'memberlist.php


jak zrobić aby subdomena nie narzucała swej nazwy a dodać główna domenę do danych tych linków.

Prosiłbym o pomoc. Pozdrawiam (IMG:style_emoticons/default/smile.gif)

Może to jest śmieszny problem ale proszę kolegów o pomoc (IMG:style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
CuteOne
post
Post #2





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

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


$phpbb_root_path = '../forum/';

$phpbb_root_path = 'http://yolo.pl/forum/';
Go to the top of the page
+Quote Post
Konuss
post
Post #3





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 21.07.2005
Skąd: Konin

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


Gdy zmieniłem tą ścieżka dostaje taki błąd:

  1. Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 347
  2.  
  3. Warning: include(http://yolo.pl/forum/common.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 347
  4.  
  5. Warning: include() [function.include]: Failed opening 'http://yolo.pl/forum/common.php' for inclusion (include_path='.:/home/sys/lsws/lsphp5/lib/php') in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 347
  6.  
  7. Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 349
  8.  
  9. Warning: include(http://yolo.pl/forum/includes/functions_display.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 349
  10.  
  11. Warning: include() [function.include]: Failed opening 'http://yolo.pl/forum/includes/functions_display.php' for inclusion (include_path='.:/home/sys/lsws/lsphp5/lib/php') in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 349
  12.  
  13. Fatal error: Call to a member function session_begin() on a non-object in /home/yolopl/domains/yolo.pl/public_html/pliki/config.php on line 353
Go to the top of the page
+Quote Post
napus
post
Post #4





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 16.02.2010

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


Ustawienia serwera i ciasteczek w ACP jeżeli tego nie ustawisz poprawnie skrypt będzie palił głupa.

Ten post edytował napus 1.11.2010, 21:19:09
Go to the top of the page
+Quote Post
Konuss
post
Post #5





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 21.07.2005
Skąd: Konin

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


A coś więcej na ten temat podpowiedzi (IMG:style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

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: 24.08.2025 - 21:27