Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]problem z funkcą if, problem po zmianie serwera z funkcja if
shadow_g
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.01.2010

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


Witam, mam taki problem w wyniku awarii starego serwera musiałem przerzucić strone z bazą danych na nowy serwer. na starym serwerze plik działał bez zarzutu, było tam php w wersji 4 na nowym jest już php5 mam pytanie czy to może być w tym problem ze jest nowsza wersja php, apacha i mysql (bo mam tylko problem z tym jednym pliczkiem). Kod pliku index.php poniżej:
Kod

<?php
ob_start();
session_start();
if (!isset($page_title)) {
   $page_title = 'PZW Koło Azoty Puławy';
   }
?>
<?php
require_once ('rejestracja/authorisation/config.inc')
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-2" />
<title><?php echo  $page_title; ?></title>
<link rel="stylesheet" type="text/css" href="tekst.css">
<link rel="stylesheet" type="text/css" href="style.css" href="tekst.css">
<link rel="stylesheet" type="text/css" href="stylenrek.css" href="tekstnrek.css">
<link rel="stylesheet" type="text/css" href="newpage.css" href="newpage.css">
</head>
<body>
  
    <?php
    
    if ( ($url == "idnaszerekordy") ||($url == "idrekszczupak") )
    {
    include("index2.php");
    }
   else if ( ($url == "galglo")|| ($url == "idreggalerii") )
    {
    include("index3.php");
    }
    else if (($url == "idonas") ||($url == "idkontakt") )
    {
        include("index1.php");  
     }
     else if (($url == "idzarzadpzw09")||($url == "idregister")||($url == "idlogin")|| )
    {
        include("index5.php");
     }
    else
    {
    include("index4.php");
    }
    ?>

</body>
</html>


Problem tkwi w tym że do trj pory na gdy klikałem na dany link to pojawiał mi sie układ strony z danego index-u a teraz cały czas sie ładuje index4.php, proszę o podpowiedź.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 02:22