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.

automatische Weiterleitung mit php

Empfohlene Antworten

hallo leute,

auf meiner php-seite möchte ich gerne automatisch nach ablauf des scriptes auf eine neue seite gehen. ich möchte also einen automatischen link ausführen.

ist das mit php möglich. wenn ja, wie lautet der befehl??

Am einfachsten ist es, wenn Du nach dem Script ein HTML-Tag ausgibts, und zwar:

<META HTTP-EQUIV="refresh" content="0;URL=Deine URL...

Ansonsten mußt Du mal googeln, ob es unter php auch sowas gibt wie den Response.Rediredt-Befehl bei asp..

geht auch einfacher:

header("Location: <ziel>");
exit;[/PHP]

für <ziel> gibst du dann die Zieladresse. Sie sollte absolut sein (HTTP /1.1-konform), aber viele Clients akzeptieren auch relative Adressen.

HIH

Benjamin

Original geschrieben von kLeiner_HobBes

geht auch einfacher:

header("Location: <ziel>");
exit;[/PHP]

[/b]

Dann dürfen vorher aber keinerlei Ausgaben erfolgt sein.

Reinhold

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.