Recommend this page to a friend! |
PHP PDF Table using FPDF | > | All threads | > | error | > | (Un) Subscribe thread alerts |
|
abukoko - 2022-09-25 10:09:25
hi
i used xamp 8.1.6 / PHP 8.1.6 i get these errors Notice: setlocale("en_US.utf8, en_US") failed! in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 280 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\XFPDFExample.class.php on line 147 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1628 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1680 Deprecated: Function strftime() is deprecated in C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php on line 1681 Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file (output started at C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php:1628) in C:\xampp\htdocs\pdf\OPlathey\FPDF\FPDF.php:453 Stack trace: #0 C:\xampp\htdocs\pdf\OPlathey\FPDF\FPDF.php(1717): OPlathey\FPDF\FPDF->error('Some data has a...') #1 C:\xampp\htdocs\pdf\OPlathey\FPDF\FPDF.php(1646): OPlathey\FPDF\FPDF->checkOutput() #2 C:\xampp\htdocs\pdf\SKien\XFPDF\XPDF.php(891): OPlathey\FPDF\FPDF->output('I', 'example.pdf') #3 C:\xampp\htdocs\pdf\XFPDFExample.php(32): SKien\XFPDF\XPDF->createPDF('example.pdf') #4 {main} thrown in C:\xampp\htdocs\pdf\OPlathey\FPDF\FPDF.php on line 453
Stefan Kientzler - 2022-09-26 12:43:09 - In reply to message 1 from abukoko
Unfortunately, this package is currently not suitable for PHP 8.1 or higher, since the strftime() function is marked as 'deprecated' and will be completely omitted from PHP 9.0.
Instead of strftime(), a construct of the following snipet must be used here in the future: $formatter = new IntlDateFormatter("us-US", IntlDateFormatter::XXXX, IntlDateFormatter::XXXX); $dateTime = new DateTime('2022-02-01'); $strDateTime = $formatter->format($dateTime)); ... this change is on my TODO list, but I can't give any prediction when an update will come since PHP 8.1 support currently hasn't the highest priority at my project(s) PS: the package is also available as public repository on github.com/Stefanius67/XFPDF feel free to make the changes on your own and create a pull request :-) |
info at phpclasses dot org
.