Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Berechnung wird nicht ausgeführt

Empfohlene Antworten

Hallo,

brauche wieder eure Hilfe.

Habe hier eine Zeile, wegen der das ganze Script nicht ausgeführt wird:

$e = (2 * ($j % 4) + 4 * ($j % 7) + 6 * $D + (6 + $j1 – $j4 – 2) % 7) % 7;

Hab's raus gefunden in dem ich einen Teil der Zeile auskommentiert habe und zwar diesen Teil: $j1 – $j4 –

j ist eine 4stellige Jahreszahl und zwar 1999

j1 ist floor($j/100), also 19

j4 ist floor($j/400), also 4

$D ist in diesem Falle 9

Was mache ich da falsch?

Den Fehler suche ich immer noch.

Ich hab jetzt diese lange Formel in viele kleine aufgeteilt:


$a = 2 * ($j % 4);
$b = 4 * ($j % 7);
$c = 6 * $D;
$f = 6 + floor($j / 100);
$f = $f – floor($j / 400); <-- Diese Zeile stört den Parser
$f = $f - 2;
$a = $a + $b + $c + $f;
$a = $a % 7;
$a = $a % 7;
[/PHP]

Und Apache meldet jedes mal folgendes:

[Thu Oct 31 15:36:54 2002] [error] PHP Parse error: parse error, unexpected

T_STRING in ...\apache\htdocs\test33.php on line 22

Ich weiss einfach nicht mehr weiter... :( :( :(

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.