🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219922

Re: !isset - zbędna negacja?

#219922
From: Grzesiek
Date: Thu, 30 Jul 2009 14:13
10 lines
1266 bytes
require rzuca fatal i jak widzisz nie znalazło pliku więc zatrzymało,
include nie zatrzymuje (tylko warning) a błąd jest przez niezdefiniowaną
funkcję pokaztytul().
initSystem() jest też zdefiniowaną przez programistę funkcją.

Cały warunek możesz też zapisać
$x = (isset($_GET['styl'])) ? './opcjonalny.php' : './normalny.php';
require($x);

Łatwiej zmienić sposób wczytywania.
Technical Details
Message-ID: <h4s9nb$l1e$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <h4s5jk$1rf$1@inews.gazeta.pl> <h4s6bb$o1b$2@atlantis.news.neostrada.pl> <h4s6so$7p5$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Grzesiek <fr@in.tld>
Newsgroups: pl.comp.lang.php
Subject: Re: !isset - zbędna negacja?
Date: Thu, 30 Jul 2009 16:13:41 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 10
Message-ID: <h4s9nb$l1e$1@inews.gazeta.pl>
References: <h4s5jk$1rf$1@inews.gazeta.pl> <h4s6bb$o1b$2@atlantis.news.neostrada.pl> <h4s6so$7p5$1@inews.gazeta.pl>
NNTP-Posting-Host: 89.108.209.177
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1248963116 21550 89.108.209.177 (30 Jul 2009 14:11:56 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 30 Jul 2009 14:11:56 +0000 (UTC)
X-User: xorock
In-Reply-To: <h4s6so$7p5$1@inews.gazeta.pl>
User-Agent: Thunderbird 2.0.0.21 (X11/20090310)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit