0
There is the possibility to display an image through class methods without needing an external file to not generate header conflict?
I created a class where to depend I call an image in a protected folder, generate an image with text or display a qrcode, so far so good the issue is that I needed to create a file where I just instate the class and call the method and in another html file I call this file only with the class and the method
home php.
<img style="width:100px" src="<?php echo BASEURL.LIBS; ?>teste/qrcode/token[121212]" >
php test.
$imagem = new Teste();
$imagem->exibirQrCode();
Detail a little better your problem
– Vinicius Maia
Something like <img src='data:image/jpeg;Base64, Lzlqlzrbq...<! -- Base64 data -->' /> ??
– Vinicius Maia
@Viniciusmaia as you do hj to display images if you need a class?
– Thalles Daniel
There is no way php can print an image. You can create a class to call the address the image is recorded on your website or call Base64 from your image. And then put in a tag img src="<? php suaclassephp ?>
– Vinicius Maia