Ansicht:   

#345520

MagicBird

Berlin,
25.07.2013, 20:49:58

header geht nicht bei strato (web.coding)

Hallo Forum,

ich nutze in einen script das header.

header ("location: index.php?action=login");



in xampp läuft die umlenkung aber auf mein strato paket eben nicht.

habt ihr eine lösung oder tip für mich.

danke lars

#345663

bender

Strasshof an der Nordbahn,
27.07.2013, 00:07:42

@ MagicBird

header geht nicht bei strato

Könnte an der php.ini liegen bzw. an der php-version. Eventuell wurde dieser Befehl raqusgenommen weil Sicherheitsloch. Oder in php5 heißt er einfach anders.

--
Grüße aus Strasshof an der Nordbahn (ja, da wo die Natascha im Keller lebte)
bender

sudo apt-get install brain_2.0

#345677

Hackertomm

27.07.2013, 13:32:56

@ MagicBird

header geht nicht bei strato

Hier mal die Syntax der Function "Header" in PHP 5.

--
[image]

#345704

MagicBird

Berlin,
27.07.2013, 21:55:35

@ Hackertomm

header geht nicht bei strato

> Hier mal die
> Syntax der Function "Header" in PHP 5.

Hallo,

hier mal mein code.

<?php

  include "include/mysql_connect.include.php";
  include "include/static_variable.include.php";
  include "include/page_top.include.php";

if ($_GET['action'] == true)
  {
    if ($_GET['action'] == 'login')
      {
        include "" . $_GET['action'] . ".php";
      }
    else
      {
        header ("location: index.php?action=login");
      }
  }
else
  {
    header ("location: index.php?action=login");
  }

  include "include/page_bottom.include.php";

?>



mfg lars

#346043

MagicBird

Berlin,
02.08.2013, 12:12:18

@ MagicBird

nun läuft's


<?php

if ($_GET['action'] == true)
  {
    if ($_GET['action'] == 'login')
      {
        include "include/mysql_connect.include.php";
        include "include/static_variable.include.php";
        include "include/page_top.include.php";
        include "" . $_GET['action'] . ".php";
        include "include/page_bottom.include.php";
      }
    else
      {
        header ("location: index.php?action=login");
      }
  }
else
  {
    header ("location: index.php?action=login");
  }

?>

Ansicht:   
Auf unserer Web-Seite werden Cookies eingesetzt, um diverse Funktionalitäten zu gewährleisten. Hier erfährst du alles zum Datenschutz