How does PHP handle relative paths in server-side execution when working with TCPDF?

When working with TCPDF in PHP, relative paths may not work correctly in server-side execution due to differences in the server's file structure. To solve this issue, it is recommended to use absolute paths when referencing files in TCPDF.

// Use absolute path when referencing files in TCPDF
require_once('/path/to/tcpdf/tcpdf.php');

// Example of using absolute path to set image in TCPDF
$pdf = new TCPDF();
$pdf->Image('/path/to/image.jpg', 10, 10, 50, 50, 'JPG');