Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Wejscie do pliku
wozniak
post
Post #1





Grupa: Zarejestrowani
Postów: 278
Pomógł: 0
Dołączył: 21.11.2003

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


Witam jak zrobic wejscie do pliku z 2 innych? bo jak z jednego to mozna by zrobic tak:
  1. <?php
  2.  if (!stristr($_SERVER['SCRIPT_NAME'], &#092;"x.php\")) {
  3. die (&#092;"Blad...\");
  4. } 
  5. ?>

A jak z 2?
tak nie działa:
  1. <?php
  2.  if (!stristr($_SERVER['SCRIPT_NAME'], &#092;"x2.php && x.php\")) {
  3. die (&#092;"Blad...\");
  4. } 
  5. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
SongoQ
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 923
Pomógł: 9
Dołączył: 25.10.2004
Skąd: Rzeszów - studia / Warszawa - praca

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


  1. <?php
  2. if (!(stristr($_SERVER['SCRIPT_NAME'], &#092;"x2.php\") || stristr($_SERVER['SCRIPT_NAME'], \"x2.php\")))
  3. {
  4. die (&#092;"Blad...\");
  5. } 
  6. ?>


Ten post edytował SongoQ 3.03.2005, 21:10:54


--------------------
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #3





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Cytat(SongoQ @ 2005-03-03 20:09:45)
  1. <?php
  2. if (!(stristr($_SERVER['SCRIPT_NAME'], &#092;"x2.php\") || stristr($_SERVER['SCRIPT_NAME'], \"x2.php\")))
  3. {
  4. die (&#092;"Blad...\");
  5. } 
  6. ?>

chyba && w tym wypadku;)


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

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: 20.08.2025 - 12:09