Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Na Nazwa.pl dziala na lh.pl nie ?, problem z wyswietlaniem strony
noc_nik
post
Post #1





Grupa: Zarejestrowani
Postów: 95
Pomógł: 0
Dołączył: 24.06.2003
Skąd: Kielce

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


Witam mam taki problem z wyświetlaniem strony :


.htaccess
  1. <?php
  2. php_flag register_globals 1
  3.  
  4. RewriteEngine On
  5. RewriteRule ^([^/]*).html$ /index.php?go=$1 [L]
  6. RewriteRule ^([^/]*)/([^/]*).html$ /index.php?go=$1&id=$2 [L]
  7. ?>


  1. <?php
  2.  
  3.    include("libs/Smarty.class.php");
  4.    $smarty = new Smarty();
  5.        
  6.    mysql_connect ("","","") or die (mysql_error());
  7.    mysql_select_db ("");
  8.                
  9.    include("meta.php");
  10.    include("top.php");
  11.    include("menu.php");
  12.    
  13.    
  14.     if(!isset($go)){
  15.      include("promocje.php");
  16.      }
  17.        else if($go=="home"){
  18.      include("promocje.php");
  19.    }  else if($go=="o-firmie"){
  20.      include("o-firmie.php");  
  21.          }  else if($go=="sklep"){
  22.      include("sklep.php");
  23.      }  else if($go=="kontakt"){
  24.      include("kontakt.php");  
  25.      }  else if($go=="wyslij"){
  26.      include("wyslij.php");
  27.      } else
  28.      echo "<center><br><b>ERROR 404</b></center>";
  29.      
  30.      include("stopka.php");
  31.  
  32. ?>



i na nazwa.pl ladnie all dziala a na lh juz nie co mam zrobic ?
Jesli skasuje .htaccess to strona sie wyswietli ale nie bedzie przechodzilo miedzy dzialami

Ten post edytował noc_nik 6.08.2009, 09:04:25
Go to the top of the page
+Quote Post
TrevorGryffits
post
Post #2





Grupa: Zarejestrowani
Postów: 139
Pomógł: 24
Dołączył: 29.07.2007
Skąd: Tarnowskie Góry

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


Zrób to bez register_globals. To w 99% przypadków prośba o włam.
Go to the top of the page
+Quote Post
phpion
post
Post #3





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Z .htaccess wywal linijkę:
Kod
php_flag register_globals 1

a na początku pliku php daj:
  1. <?php
  2. extract($_GET);
  3. ?>


Cytat(TrevorGryffits @ 6.08.2009, 10:10:51 ) *
Zrób to bez register_globals. To w 99% przypadków prośba o włam.

Jednak lepiej weź sobie do serca tą radę (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post
noc_nik
post
Post #4





Grupa: Zarejestrowani
Postów: 95
Pomógł: 0
Dołączył: 24.06.2003
Skąd: Kielce

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


Panowie jesteście wielcy (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

  1. <?php
  2. extract($_GET);
  3. ?>


I dziala (IMG:http://forum.php.pl/style_emoticons/default/smile.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: 15.09.2025 - 05:20