Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] session_start()
arh
post 20.09.2009, 08:27:14
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 26.12.2008

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


http://akfarium.lo-lubaczow.pl/new/admin/
W czym jest błąd?

  1. <?php
  2.  
  3.  
  4. function die2($header)
  5. {
  6. Header($header);
  7. }
  8.  
  9. include("../db_config.php");
  10.  
  11. $link = mysql_connect($db_server, $db_user, $db_password) or die2("HTTP/1.0 500 Internal Server Error");
  12. mysql_select_db($db_databasename);
  13.  
  14. if (isset($_GET["action"]))
  15. {
  16. if (file_exists("static/".$_GET["action"].".php"))
  17. {
  18. include("static/".$_GET["action"].".php");
  19. } else {
  20. Header("HTTP/1.1 404 Not Found");
  21. $title = "Błąd 404: Podany plik nie istnieje";
  22. $content = "404ka";
  23. }
  24. } else Header("Location: http://".$_SERVER["SERVER_NAME"]."/new/admin/index.php?action=home");
  25.  
  26. include("template.php");
  27.  
  28. mysql_close($link);
  29.  
  30. ?>
Go to the top of the page
+Quote Post

Posty w temacie
- arh   [PHP] session_start()   20.09.2009, 08:27:14
- - cojack   [PHP] pobierz, plaintext <?phpsession_start...   20.09.2009, 08:32:25


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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:55