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
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
I have this code that picks up the image from a dynamic file. Works fine till php 7. after that i get an error as above.
Thanks
Ron
I have this code that picks up the image from a dynamic file. Works fine till php 7. after that i get an error as above.
<?php echo "\n {$image[$form->data['photo']]}"; ?>And if I uncomment it the entire form works fine like this:
<?php // echo "\n {$image[$form->data['photo']]}"; ?>
Thanks
Ron
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
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
Hey Bob
Thanks for the reply.. I am not able to get it work..
Could you suggest an example please..
Thanks again
Ron
Thanks for the reply.. I am not able to get it work..
<?php
$unit = $image[$form->data['photo']];
echo $unit
?>
Could you suggest an example please..
Thanks again
Ron
Hi Ron,
Where do you define $image - it's not part of the normal form data?
Bob
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
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
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
This topic is locked and no more replies can be posted.