Skip to content

Tag: php

Generate Multiple Page TCPDF on Codeigniter

I have a table that i use to show a data and generate a report based on each row. The table would be like this: this is my controller to generate the pdf so far: and this is the view: and here’s my model I managed to generate a pdf for each row. but is it possible to generate a

PHP TCPDF – Half-width kana is being considered as Full-width

I’m having a problem with rendering a string of text that contains half-width kana in a PDF. It considers the half-width kana to be full-width so it turns out something like this: This is my code snippet: I’m also using the cid0jp font provided in TCPDF to display Japanese characters: In the end, …

PHP Laravel Check if Array is empty

I am struggling with displaying some content depending on if an array does have a value or not.Every time the code in the else part is executed. What’s wrong here? Is there any syntax error with this code? I’m using php laravel. Answer

Read XLS in PHP using PhpSpreadsheet

I have a requirements to read XLS files (not xlsx) using PhpSpreadsheet and I having trouble. I tried this (as the documentation say but…) but didn’t work (it worked with a xlsx file, but no with a xls file!) Then I tried to open file differently: but also doesn’t work… I really need t…