Problem with imagettftext

0

I'm doing a simple captcha but when I insert a font in the image it appears

  

Warning: imagettftext (): Could not find / open font in C: \ xampp \ htdocs \ captcha \ cap.php on line 14

Code line where I try to put a source:

imagettftext($img,20,0,20,30,1,'arial.ttf',$str);

I have the source 'arial.ttf' in the same folder as the cap.php

    
asked by qwerty 31.07.2018 в 03:09
source

0 answers