I have a form that generates a PDF that is saved in a folder. After I upgraded to php 7.3 I get an error " TCPDF ERROR: Can't open image file: http://xyz.com/images/i270.png".
I am not able to figure out what could be the mistake.
I have a lot of php coding in my form and it confuses me to use v6 so I am sticking on to V5 which I find more durable.
Please help
Thanks
Ron
And do you HAVE such an image at that url on your site? Can you access it in a browser?
Hello,
Yes.. It works fine upto php 7.0. but after that I get this error.
Hi Ronn,
PHP 7 has limited the ways in which arrays can be defined - please try defining $image as an array before you use it here.
Bob
Hi Ron,
Where do you define $image - it's not part of the normal form data?
Bob
Hi Ronn,
But that isn't in the code snippet in your earlier post?? I'm not sure what you are trying to do here?
Bob
Bob.
The. earlier snippet is the code I use to pick data from my array (the second snippet). You asked me where the $image came from .. I have been using this code till php 7.0 but after 7.0 if I choose 7.1 or 7.2 or 7.3 php this does not work.
Hope I have been able to rightly mention.
Thanks
Ron
Hi Ron,
I'm sorry but I don't see how this works - have you only posted a part of your PHP code here?
Bob