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.

imagettftext mit apache2 auf debian

Empfohlene Antworten

Veröffentlicht

Tagchen ich hoffe ich habe das Problem jetzt richtig gepostet, da ich denke das es an dem Apache liegt.

So nun erstmal zu meinem Problem.

Auf meinem Rechner lokal habe ich einen Apache installiert und mit imagettftext habe ich dann Buttons für eine Webseite erstellt. Hat auch alles wunderbar funktioniert.

Da die ganze Seite später auf meinem debian zu Hause laufen soll, hab ich den kleinen Teil den ich bereits programmiert habe auf meinen debian kopiert.

Es geht fast alles bis auf das imagettftext.

Habe dann mal ein einfaches script von selfphp genommen und es geht auch nicht.

Hier der Code


<?
header("Content-type: image/jpeg");
$image = imagecreate(300,150);
$farbe_body=imagecolorallocate($image,243,243,243);
$font_c = imagecolorallocate($image,10,36,106);
imagettftext($image, 20, 28, 30, 140, $font_c, "Dbsquiso.ttf", "PHP3/4 - Die Befehlsreferenz");
imagejpeg($image);
?>
[/PHP]

es zeigt mit leider nur den Pfad an, erstellt aber keine Grafik.

Hat jemand eine Idee?

arg die kleinen aber feinen Unterschiede zwischen Windows und Linux



<?
header("Content-type: image/jpeg");
$image = imagecreate(300,150);
$farbe_body=imagecolorallocate($image,243,243,243);
$font_c = imagecolorallocate($image,10,36,106);
imagettftext($image, 20, 28, 30, 140, $font_c, "./Dbsquiso.ttf", "PHP3/4 - Die Befehlsreferenz");
imagejpeg($image);
?>
[/PHP]

man achte auf das ./ vor dem Font und es geht

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.