• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved How to use headline.php

Yes, you must create headline.php in root directory of your acc and paste this code to .php:

PHP:
<?php
  $text = $_GET['txt'];
  $text = strtoupper($text[0]).substr($text,1,strlen($text));
  $size = 18;
  $sizex = 280;
  $sizey = 28;
  $x = 4;
  $y = 20;
  $color = 'efcfa4';
  $red = (int)hexdec(substr($color,0,2));
  $green = (int)hexdec(substr($color,2,2));
  $blue = (int)hexdec(substr($color,4,2));
  $img = imagecreatetruecolor($sizex,$sizey);
  ImageColorTransparent($img, ImageColorAllocate($img,0,0,0));
   
  imagefttext($img, $size, 0, $x, $y, ImageColorAllocate($img,$red,$green,$blue), './images/headline.ttf', $text);
   
  header('Content-type: image/png');
  imagepng($img);
  imagedestroy($img);

?>

And in /images/ you must put headline.ttf

https://code.google.com/p/gesior-aac/source/browse/branches/0.6.3/upload/images/headline.ttf

Then you can try to add test image:
Code:
<img src="headline.php?txt=test%20text"></img>
 
Back
Top