ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Archiv / Lastvisited problem / register_globals = off


Seite 1 von 1

theDon schrieb am 03.04.2003 um 22:49 Uhr

inc/header.inc.php ~ 287

if( ereg("board.php", $PHP_SELF) )

so ändern:

if( eregi("board.php", $_SERVER['PHP_SELF']) )

sonst wird unter umständen lastvisited nicht gesetzt (war jedenfalls bei mir so)

Jonas schrieb am 04.04.2003 um 22:06 Uhr

wenn schon, dann auch $HTTP_SERVER_VARS['PHP_SELF']

Jochen2003 schrieb am 04.04.2003 um 22:29 Uhr

gelöscht da blind :D

theDon schrieb am 04.04.2003 um 22:46 Uhr

Jonas postete
wenn schon, dann auch $HTTP_SERVER_VARS['PHP_SELF']

nö.

$_SERVER
Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SERVER_VARS.

This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_SERVER; to access it within functions or methods, as you do with $HTTP_SERVER_VARS.

Bluetooth schrieb am 06.04.2003 um 02:42 Uhr

theDon, $_SERVER mag zwar sinnvoller sein, da superglobal,
allerdings ist das Forum-System von haus aus lauffähig mit
PHP 4.0.6. Daher $HTTP_SERVER_VARS

Seite 1 von 1