Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
$left = 0;
$top = 0;
$x_size = 468;
$y_size = 60;
$char_width = 0;
$char_height = 0;
$x_start = $x_left;
$y_start = $top + $char_height * 1.5;
$x_end = $x_start + $x_size;
$y_end = $y_start + $y_size;
$right = $x_start + $x_size;
$bottom = $y_start + $y_size + $char_height * 1.5;
$image = ImageCreate($right - $left, $bottom - $top);
$background_color = imagecolorallocate($image, 255, 255, 255);
$text_color = imagecolorallocate($image, 233, 14, 91);
$grey = ImageColorAllocate($image, 204, 204, 204);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
$red = imagecolorallocate($image, 255, 0, 0);
imagerectangle($image, $left, $top, $right - 1, $bottom - 1, $black );
$text1 = 'Test';
$text2 = ' Test2';
imagestring($image, 4, $char_width, (0- 0) / 2, $text1, $black);
imagestring($image, 4, $char_width, (0- 0) / 2, $text2, $black);
header('Content-type: image/png');
$filename = "test.png";
ImagePNG($image,$filename);
ImageDestroy($image);
printf("<img src='%s'> ", $filename);
?>