Hallo Willi.
Kannst du mir (oder vllt. noch jemand anderes) mir weiterhelfen?
Hier einmal meine funktionstüchtige Fassung:
if (!isset($_GET['foo'])) {
header('Location: http://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] .
(empty($_SERVER['QUERY_STRING']) ? '?' : '&') . 'foo=BAR');
}
Dies führt zu folgendem Verhalten:
http://example.org/script.php → http://example.org/script.php?foo=BAR
http://example.org/script.php?baz=QUX → http://example.org/script.php?baz=QUX&foo=BAR
Einen schönen Freitag noch.
Gruß, Mathias
--
ie:% fl:| br:< va:) ls:& fo:) rl:( n4:~ ss:) de:] js:| mo:| zu:)
debian/rules
ie:% fl:| br:< va:) ls:& fo:) rl:( n4:~ ss:) de:] js:| mo:| zu:)
debian/rules