Problem mit php.ini

davedave

Grünschnabel
Hallo bei mir kommt immer diese Fehlermeldung

HLstats requires register_globals to be enabled. Check your php.ini or refer to the PHP manual for more information.

So sieht Php.ini aus was muss ich ändern

Code:
engine=On
short_open_tag=On
asp_tags=Off
precision=14
y2k_compliance=Off
output_buffering=Off
output_handler=
zlib.output_compression=Off
implicit_flush=Off
allow_call_time_pass_reference=On
safe_mode=Off
safe_mode_exec_dir=
safe_mode_allowed_env_vars=PHP_
safe_mode_protected_env_vars=LD_LIBRARY_PATH
disable_functions=
highlight.string=#CC0000
highlight.comment=#FF9900
highlight.keyword=#006600
highlight.bg=#FFFFFF
highlight.default=#0000CC
highlight.html=#000000
expose_php=On
max_execution_time=30     ; Maximum execution time of each script, in seconds
memory_limit=8M      ; Maximum amount of memory a script may consume (8MB)
error_reporting=E_ALL & ~E_NOTICE
display_errors=On
display_startup_errors=Off
log_errors=Off
track_errors=Off
warn_plus_overloading=Off
variables_order="EGPCS"
register_globals=on
register_argc_argv=on
post_max_size=8M
gpc_order="GPC"
magic_quotes_gpc=On
magic_quotes_runtime=Off
magic_quotes_sybase=Off
auto_prepend_file=
auto_append_file=
default_mimetype="text/html"
include_path=
doc_root=
user_dir=
extension_dir=C:/FoxServ/php\extensions
enable_dl=On
zend_optimizer.optimization_level=15
zend_extension_ts="C:/FoxServ/Zend\lib\ZendOptimizer.dll"
zend_optimizer.enable_loader=0
file_uploads=On
upload_max_filesize=2M
allow_url_fopen=On
extension=php_gd.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_zlib.dll


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
define_syslog_variables=Off

[mail function]
SMTP=mail.btinternet.com
sendmail_from=admin@localhost

; For Unix only.  You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =

[Logging]
zend_optimizer.optimization_level=15
; These configuration directives are used by the example logging mechanism.
; See examples/README.logging for more explanation.
;logging.method = db
;logging.directory = /path/to/log/directory

[ java]
zend_optimizer.optimization_level=15
;java.class.path = .\php_java.jar
;java.home = c:/jdk
;java.library = c:/jdk\jre\bin\hotspot\jvm.dll 
;java.library.path = .\

[ sql]
sql.safe_mode=Off

[ODBC]
odbc.allow_persistent=On
odbc.check_persistent=On
odbc.max_persistent=-1
odbc.max_links=-1
odbc.defaultlrl=4096
odbc.defaultbinmode=1

[ MySQL]
mysql.allow_persistent=On
mysql.max_persistent=-1
mysql.max_links=-1
' at MYSQL_PORT.
mysql.default_port=
mysql.default_socket=
mysql.default_host=
mysql.default_user=
mysql.default_password=

[mSQL]
msql.allow_persistent=On
msql.max_persistent=-1
msql.max_links=-1

[PostgresSQL]
pgsql.allow_persistent=On
pgsql.max_persistent=-1
pgsql.max_links=-1

[Sybase]
sybase.allow_persistent=On
sybase.max_persistent=-1
sybase.max_links=-1
sybase.min_error_severity=10
sybase.min_message_severity=10
sybase.compatability_mode=Off

[Sybase-CT]
sybct.allow_persistent=On
sybct.max_persistent=-1
sybct.max_links=-1
sybct.min_server_severity=10
sybct.min_client_severity=10

[bcmath]
bcmath.scale=0

[browscap]
zend_optimizer.optimization_level=15
;browscap = extra/browscap.ini

[Informix]
ifx.default_host=
ifx.default_user=
ifx.default_password=
ifx.allow_persistent=On
ifx.max_persistent=-1
ifx.max_links=-1
ifx.textasvarchar=0
ifx.byteasvarchar=0
ifx.charasvarchar=0
ifx.blobinfile=0
ifx.nullformat=0

[Session]
session.save_handler=files
session.save_path=C:/FoxServ/php\temp;
session.use_cookies=1
session.name=PHPSESSID
session.auto_start=0
session.cookie_lifetime=0
session.cookie_path=/
session.cookie_domain=
session.serialize_handler=php
session.gc_probability=1
session.gc_maxlifetime=1440
session.referer_check=
session.entropy_length=0
session.entropy_file=
session.cache_limiter=nocache
session.cache_expire=180
session.use_trans_sid=1
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
mssql.allow_persistent=On
mssql.max_persistent=-1
mssql.max_links=-1
mssql.min_error_severity=10
mssql.min_message_severity=10
mssql.compatability_mode=Off

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each bach.  0 = all records in one batch.
;mssql.batchsize = 0

[Assertion]
zend_optimizer.optimization_level=15
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0

[Ingres II]
ingres.allow_persistent=On
ingres.max_persistent=-1
ingres.max_links=-1
ingres.default_database=
ingres.default_user=
ingres.default_password=

[Verisign Payflow Pro]
pfpro.defaulthost="localhost"
pfpro.defaultport=443
pfpro.defaulttimeout=30

; Default proxy IP address (if required).
;pfpro.proxyaddress =

; Default proxy port.
;pfpro.proxyport =

; Default proxy logon.
;pfpro.proxylogon =

; Default proxy password.
;pfpro.proxypassword =

[Sockets]
sockets.use_system_read=On
Vielen Dank

Gruss Dave
 
Zuletzt bearbeitet von einem Moderator:
Original geschrieben von davedave
HLstats requires register_globals to be enabled. Check your php.ini or refer to the PHP manual for more information.

steht doch eigentlich da: register_globals muss eingeschaltet (also enabled) werden.

aus
register_globals=off
muss
register_globals=on
werden


Dunsti
 
Alternativ kannst du register_globals=off lassen und die Variablen mit
$HTTP_*_VARS[variable] "ansprechen".
dooby
 
Hallo

Wie muss ich das ersetzten

// Check PHP configuration

if (phpversion() < 4)
{
error("HLstats requires PHP version 4 or newer (you are running PHP version " . phpversion() . ").");
}

if (!get_magic_quotes_gpc())
{
error("HLstats requires <b>magic_quotes_gpc</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
}

if (get_magic_quotes_runtime())
{
error("HLstats requires <b>magic_quotes_runtime</b> to be <i>disabled</i>. Check your php.ini or refer to the PHP manual for more information.");
}

if (!ini_get("register_globals"))
{
error("HLstats requires <b>register_globals</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
}

// this doesn't work with php 4.0.3+
/*if (!ini_get("track_vars"))
{
error("HLstats requires <b>track_vars</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
}*/

// do not report NOTICE warnings
error_reporting(E_ALL ^ E_NOTICE);


///
/// Classes
///

// Load database classes
require(INCLUDE_PATH . "C:\FoxServ\www\stats\hlstatsinc\db.inc");


Gruss Dave
 
Hi,

entferne die Zeilen:
PHP:
if (!ini_get("register_globals"))
{
error("HLstats requires <b>register_globals</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
}

Und füge in das Script, das zur Anzeige der HLstats gestartet wird zu Beginnn folgendes ein:
PHP:
// UNTESTED!
reset ($_REQUEST);
while (list ($key, $val) = each ($_REQUEST)) {
  $$key = $val;
}

Dadurch sollten alle dem Script übergebenen Variablen automatisch verfügbar gemacht werden. (Umgehen von register_globals = off)
Dies stellt nur eine Notlösung dar (und wurde nicht getestet).

snuu
 
Hallo

Das kommt jetzt dieser Fehler

Fatal error: Failed opening required 'C:\FoxServ\www\stats\hlstatsincC:\FoxServ\www\stats\hlstatsinc\db.inc' (include_path='.;c:\php4\pear') in C:\FoxServ\www\stats\hlstats.php on line 142

so habe ich es eingefügt


PHP:
// Check PHP configuration
	
	if (phpversion() < 4)
	{
		error("HLstats requires PHP version 4 or newer (you are running PHP version " . phpversion() . ").");
	}
	
	if (!get_magic_quotes_gpc())
	{
		error("HLstats requires <b>magic_quotes_gpc</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
	}
	
	if (get_magic_quotes_runtime())
	{
		error("HLstats requires <b>magic_quotes_runtime</b> to be <i>disabled</i>. Check your php.ini or refer to the PHP manual for more information.");
	}
	
	// UNTESTED! 
reset ($_REQUEST); 
while (list ($key, $val) = each ($_REQUEST)) { 
  $$key = $val; 
	}
	
	// this doesn't work with php 4.0.3+
	/*if (!ini_get("track_vars"))
	{
		error("HLstats requires <b>track_vars</b> to be <i>enabled</i>. Check your php.ini or refer to the PHP manual for more information.");
	}*/
	
	// do not report NOTICE warning

Grüssli Dave
 
Hallo

db.inc sind die Daten für die Mysql Login


Das kann ich schon machen das geht doch?

Wenn ich mein Server Zuhause haben und mein mysql Datenbank ( bei levanzo Anbieter. Geht doch das schon das es dort hinsendet

Wie heisst mysql IP. Ist das eine Standart oder hat jeder Anbieter eine eigenen IP für die Mysld Datenbank


Gruss Dave
 
Zuletzt bearbeitet:
Zurück