bcdiv() & bcmul()
bcdiv() & bcmul()
Ich habe grade den downloadmod version 2.irgendwas installiert.
nun kam folgende fehlermeldung beim traffic einstellen und beim aufruf der download.php:
Fatal error: Call to undefined function: bcmul() in /raid/domains/net/r/rhymez/htdocs/forum/admin/admin_dl_traffic_all_users.php on line 35
auf diese seite hier gegangen und diesen bugfix dazu gefunden.
alles gemacht. jetzt kommt folgende fehlermeldung:
Warning: Unable to access ./includes/functions_dl_bcmath.php in /raid/domains/net/r/rhymez/htdocs/forum/downloads.php on line 10
wo liegt der fehler ?
nun kam folgende fehlermeldung beim traffic einstellen und beim aufruf der download.php:
Fatal error: Call to undefined function: bcmul() in /raid/domains/net/r/rhymez/htdocs/forum/admin/admin_dl_traffic_all_users.php on line 35
auf diese seite hier gegangen und diesen bugfix dazu gefunden.
alles gemacht. jetzt kommt folgende fehlermeldung:
Warning: Unable to access ./includes/functions_dl_bcmath.php in /raid/domains/net/r/rhymez/htdocs/forum/downloads.php on line 10
wo liegt der fehler ?
das weiß ich selbst nicht
ich hab das aus der bcdiv_bcmul.txt
ich hab das aus der bcdiv_bcmul.txt
Code: Alles auswählen
########################################################
## Mod Titel: DlMod (Änderungen)
## Mod Version: 1.4.1 (0.1.0)
## phpBB- Version: 2.0.x
## Datum: 30.12.2002
## Autor: Helmut.S & Karl.T
## Beschreibung: Diese Änderungen sind notwendig, damit der Mod funktioniert, wenn
## vom Provider die Befehle "bcdiv()" und "bcmul()" nicht zur verfügung stehen.
##
## Ich habe noch nicht alles getestet, aber es müßte eigentlich so gehen.
##
## Schwierigkeitsgrad
## der Installation: leicht
## Installationsdauer: ca. 10 Minuten
## Veränderte Dateien:
## admin/admin_dl_files.php
## admin/admin_dl_traffic_all_users.php
## admin/admin_dl_traffic_single_user.php
## downloads.php
##
## Zusätzliche Dateien:
## includes/function_dl_bcmath.php
##
##
##
########################################################
##
## Kontakt: Helmut
## Homepage:
## E- Mail: MARVIN42@web.de
##
##
########################################################
//Folgende Zeilen als "function_dl_bcmath.php" abspeichern und ins Verzeichnis ./includes/ vom phpBB kopieren
<?php
/*#########################################
#
# bcmath mathematische Nachbildung von bcdiv und bcmul wenn
# diese nicht vom Provider bereit gestellt werden.
#
# Hier können später auch die restlichen Funktionen von bcmath
# nachgebildet werden.
#
# Filename: function_dl_bcmath.php
#
# Contact: MARVIN4@web.de
# Autor: Helmut.S und Karl.T
#########################################*/
function bcmul($a, $b, $scale)
{
$r = $a * $b;
for ( $i=0; $i < $scale; $i++);
$r = 10 * $r;
$r = ((int) $r);
for ( $i=0; $i < $scale; $i++);
$r = 0.1 * $r;
return $r;
}
function bcdiv($a, $b, $scale)
{
$r = $a / $b;
for ( $i=0; $i < $scale; $i++);
$r = 10 * $r;
$r = ((int) $r);
for ( $i=0; $i < $scale; $i++);
$r = 0.1 * $r;
return $r;
}
?>
---- Ende Datei---------
----- Datei "downloads.php" öffnen-------------------------------------------
---- finde folgende Zeile:---------
include($phpbb_root_path . 'common.'.$phpEx);
----- danach einfügen------------
//Download mod
require($phpbb_root_path . 'includes/functions_dl_bcmath.'.$phpEx);
//
---- Datei speichern---------------
----- Datei "admin_dl_files.php" öffnen-------------------------------------------
---- finde folgende Zeile:---------
require('./pagestart.' . $phpEx);
----- danach einfügen------------
//Download mod
require($phpbb_root_path . 'includes/functions_dl_bcmath.'.$phpEx);
//
---- Datei speichern---------------
----- Datei "admin_dl_traffic_all_users.php" öffnen--------------------------------
---- finde folgende Zeile:---------
require('./pagestart.' . $phpEx);
----- danach einfügen------------
//Download mod
require($phpbb_root_path . 'includes/functions_dl_bcmath.'.$phpEx);
//
---- Datei speichern---------------
----- Datei "admin_dl_traffic_single_user.php" öffnen------------------------------
---- finde folgende Zeile:---------
require('./pagestart.' . $phpEx);
----- danach einfügen------------
//Download mod
require($phpbb_root_path . 'includes/functions_dl_bcmath.'.$phpEx);
//
---- Datei speichern---------------
---- Ende-------------------------------------------------------------------------------------------------
Code: Alles auswählen
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//Download mod
[b]require($phpbb_root_path . 'includes/functions_dl_bcmath.'.$phpEx); [/b]
//
//
// Set page ID for session management
//
das problem hab ich hinbekommen.
dummerweise kommen jetzt aber nur noch mehr fehlermeldungen:
ich erinner mich das ich hier schonmal was über eine fehlermeldung mit page_header gelesen hab, hab aber den thread net gefunden
dummerweise kommen jetzt aber nur noch mehr fehlermeldungen:
Code: Alles auswählen
Warning: Cannot add header information - headers already sent by (output started at /raid/domains/net/r/rhymez/htdocs/forum/includes/functions_dl_bcmath.php:41) in /raid/domains/net/r/rhymez/htdocs/forum/includes/sessions.php on line 286
Warning: Cannot add header information - headers already sent by (output started at /raid/domains/net/r/rhymez/htdocs/forum/includes/functions_dl_bcmath.php:41) in /raid/domains/net/r/rhymez/htdocs/forum/includes/sessions.php on line 287
Warning: Cannot add header information - headers already sent by (output started at /raid/domains/net/r/rhymez/htdocs/forum/includes/functions_dl_bcmath.php:41) in /raid/domains/net/r/rhymez/htdocs/forum/includes/page_header.php on line 503
Warning: Cannot add header information - headers already sent by (output started at /raid/domains/net/r/rhymez/htdocs/forum/includes/functions_dl_bcmath.php:41) in /raid/domains/net/r/rhymez/htdocs/forum/includes/page_header.php on line 504
Warning: Cannot add header information - headers already sent by (output started at /raid/domains/net/r/rhymez/htdocs/forum/includes/functions_dl_bcmath.php:41) in /raid/domains/net/r/rhymez/htdocs/forum/includes/page_header.php on line 505