Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Prośba o wyjaśnienie
MESSIAH :)
post
Post #1





Grupa: Zarejestrowani
Postów: 249
Pomógł: 0
Dołączył: 22.12.2011

Ostrzeżenie: (10%)
X----


Mam taki kod:
  1. if (!include('inc/configs.inc.php')) {
  2. $inst_path = (!defined('InCMS')) ? 'inst/install.php' : '../inst/install.php';
  3. header('location: ' . $inst_path);
  4. }


Jakim cudem plik configs.inc.php zostaje includowny? Dlaczego się tak dzieje? Przecież wyraźnie jest użyty operator negacji oraz jest to warunek a nie zwykłe include.

Ten post edytował MESSIAH :) 13.08.2017, 19:47:50


--------------------
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: 21.08.2025 - 18:30