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.

.htaccess php include()

Empfohlene Antworten

Veröffentlicht

hiho,

ich habe ein verzeichnis /dir/html/admin, dass ich mit einer .htaccess-datei geschützt habe. funzt auch soweit, wenn ich das verzeichnis mit dem browser direkt "ansteuere". ich würde jetzt nur gerne die login-aufforderung auch dann haben, wenn ich mit der include funktion eine datei aus diesem verzeichnis in meine scripte einbinde.

thx

hmm also ich bin mir nun nicht sicher... hab ich auch noch nie gemacht aber ich trau mich nun mal eine vermutung aufzustellen:

include doch mit der gesamten url also nich:

/test/admin/test.php

sondern:

http://www.domain.de/hehe/test/admin/test.php

alles klar? :)

also nur so eine idee weis aber nich ob das funtzt...

Hi!

Also gleich mal vorweg ich kenn mich mit .htaccess ned besonders aus!

Aber:

Der ".htaccess - Schutz" gilt für das Verzeichnis oder? d.h. es kommt so ein Login Prompt, wenn du auf das Verzeichnis gehst.

Kommt dieser Login Prompt auch, wenn du eine Datei direkt ansteuerst?

wenn nicht denke ich musst du (wenn es geht...) die Dateien extra in das .htaccess - File eintragen, damit der Promp kommt!

Somit dürfte der Prompt ja dann auch beim includen auftauchen

Gruß

Azrael

hm. nützt alles nichts.

Hi,

nur wenn der Browser das Verzeichnis oder eine Datei in dem Verzeichnis ansteuert kommt das Promt, also wenn du ein include machst passiert das Serverseitig und du wirst nie ein Promt zu sehen bekommen.

Was hat das ganze denn für einen Sinn?

Vielleicht kann man ja ein Workaround zusammenbasteln.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.