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.

[PHP] Header Value Disposition: Inline

Empfohlene Antworten

ich habe ein einfaches Download-Script mit sicherheitsabfrage.

Auf einer Seite wird es verwendet um Preview-Bilder (max 160x120) anzuzeigen.

Jedes dieser Bilder ist gleichzeitig wieder ein Link auf das Download-Script mti der anweisung das Bild in Orginalgröße auszugeben.

Im Download-Script steht Disposition: Inline;

Browser: internet Explorer

Das Preview Bild wird korrekt im <img> tag angezeigt. Klicke ich nun aber drauf und will das vollbild haben, funktioniert :Inline nichtmehr, ich bekomme den öffnen/speichern unter Dialog.

Firefox hat keine derartigen Probleme.

Ideen/hinweise ?

Also wenn ich das richtig verstehe, willst du ein Bild über ein php-script anzeigen?

Ich habe sowas mit bildern aus einer DB gemacht, und das geht im img-Tag und auch ohne:


<?php
...

// gibt Image aus der DB aus

$db = new Database($ip_dbhost, $ip_dbname, $ip_dbuser, $ip_dbpasswd);
$db->connect();
$db->open();

$sqlstring = "select data, php_filetype from table where id = ". $_GET["id"];

$res = $db->selectRecord($sqlstring);
$filetype = $res[1];
$image = $res[0];
header("Content-type: " . image_type_to_mime_type($filetype));
echo $image;
?>
[/php]

Data ist blob-feld für das bild, php_filetype das Feld, in dem der Imagetyp gespeichert ist (funktion getimagesize).

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.