Live chat Whatsapp
Live chat Whatsapp
Attiva Web - Realizzazione siti internet, ecommerce

Tcpdf and the tempnam function

    • Tcpdf is a very useful and functional php plug-in, I would also say well done, which allows you to convert documents to pdf via the php programming language.

      I don't dwell on how to use it, maybe devote a ad hoc post to it. the module works well up to php 7.1 without having to make changes, in version 7.3 some functions have changed and let's face it, the interpreter php è become, in my opinion fortunately, more attentive even to small defects.

      Basically when you try to produce a pdf an error similar to this appears:

      tempnam() file created in the system s temporary directory

      indicating the file that produces it and the offending staves, since as you will notice the error will be repeate more times. and due to problems while writing the temporary pdf file, online there are few indications on how to fix but none of these worked, very trivially I solved by prepending the in front of the offending lines; For those who program in php, they know that the character (the snail by way of us) silences errors, not è the maximum as a solution but for the moment and there is no documentation more accurate the only way I have found to solve the problem and continue to make customers work.

      Francesco // 12-06-2020 // PHP

    Lascia un commento

    Invia commento


    ATTENZIONE: il tuo commento verrà prima moderato e se ritenuto idoneo sarà pubblicato