I am trying the examples of this library in Ubuntu 11.04 and all is OK. But, when I started to use this library in Red Hat and I tried to add images to the rtf I found a problem.
The examples I am using are the examples of the library and are the same in both cases, but in Red Hat something failed. Are there any incompatibility between the library and Red Hat? Maybe I have to install anything else in Red Hat?
Thanks in advance.
PS: Sorry for my English.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What exactly goes wrong? Did you get an error message? May be, RedHat uses different image library than Ubuntu… Could please check that for me? The images.php example did not work, right? Which RedHat version do you use? Which php version?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PHP Fatal error: Call to undefined function image_type_to_extension() in /.../phprtflite-1.2.0/lib/PHPRtfLite/Image.php on line 323
So I supposed that the error is related with the version of PHP. The version that I use in Ubuntu is "PHP Version 5.3.5-1ubuntu7.4" and in RedHat is "PHP Version 5.1.6". I will update the version of PHP in RedHat soon and I will try the examples again.
If my supposition is true, I will tell you in this forum for helping futures users with the same problem.
Thanks for answering.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunatly neither I could find a note in the php nor in the GD library documentation since when this function (image_type_to_extension()) has been added.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To close the thread, at the end, the problem was that the function image_type_to_extension() was added to the PHP version 5.2.0. The updating of PHP resolved the problem.
Thank you for all and sorry for answer so late.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying the examples of this library in Ubuntu 11.04 and all is OK. But, when I started to use this library in Red Hat and I tried to add images to the rtf I found a problem.
The examples I am using are the examples of the library and are the same in both cases, but in Red Hat something failed. Are there any incompatibility between the library and Red Hat? Maybe I have to install anything else in Red Hat?
Thanks in advance.
PS: Sorry for my English.
What exactly goes wrong? Did you get an error message? May be, RedHat uses different image library than Ubuntu… Could please check that for me? The images.php example did not work, right? Which RedHat version do you use? Which php version?
Hello,
When I execute the program as:
The error is:
So I supposed that the error is related with the version of PHP. The version that I use in Ubuntu is "PHP Version 5.3.5-1ubuntu7.4" and in RedHat is "PHP Version 5.1.6". I will update the version of PHP in RedHat soon and I will try the examples again.
If my supposition is true, I will tell you in this forum for helping futures users with the same problem.
Thanks for answering.
Unfortunatly neither I could find a note in the php nor in the GD library documentation since when this function (image_type_to_extension()) has been added.
To close the thread, at the end, the problem was that the function image_type_to_extension() was added to the PHP version 5.2.0. The updating of PHP resolved the problem.
Thank you for all and sorry for answer so late.
Thanks for reporting that. I will change the requirement section to php 5.2 in the docs.
Best regards