php image and pdf enquiry
Moderator: General Moderators
php image and pdf enquiry
Dear all,
I have downloaded libharu2.1 .but not understading where to install and where to paste ext or dll or place folder libharu2.1 .
When i execute the some image says that HaruDoc not found error.
Please suggest me how to include haru folder
Please.
Regards,
nagaraja kharvi
I have downloaded libharu2.1 .but not understading where to install and where to paste ext or dll or place folder libharu2.1 .
When i execute the some image says that HaruDoc not found error.
Please suggest me how to include haru folder
Please.
Regards,
nagaraja kharvi
Re: php image and pdf enquiry
Find the locations of your extension directory and php.ini file.
Put the DLL in the extension directory.
Add a line to the php.ini file. Use the correct name of the DLL file.
Some resources:
Edit: This post was recovered from search engine cache.
Code: Select all
var_dump(ini_get('extension_dir'), php_ini_loaded_file());Add a line to the php.ini file. Use the correct name of the DLL file.
Code: Select all
extension=php_libharu.dll
Last edited by McInfo on Thu Jun 17, 2010 1:35 pm, edited 1 time in total.
Re: php image and pdf enquiry
Hi,
Thanks for the reply.Thank you very much.
The code says this is the dir and file path:string(16) "D:\xampp\php\ext" string(20) "D:\xampp\php\php.ini"
Ihave added extension=php_libharu.dll to php.ini but where to find dll file .What i have is that zipped file of libharu-2.1.0.zip(trz).where to paste and find file .If u give me clear step by step instruction that would help me a lot.This is first time i am going to pdf file using php.Please ha.......
and i have one more request is that when i tried to create chart (anytype) ,will be getting following error-even not even single time executed program.
‰PNG ��� IHDR�����Œ���(l!:��>IDATxœíÝ=NdGЋÈѬÀ"ɲÙ+pÒ19pÈ^ȉIf8²F–8 ³ÙÀ9pÐ2B€5¯Û·_Ý[uŽF-4 ªùùôQÕUï½»¿ÿÒ€ÿ礵vzú¾÷Ӏ¶ۇoz? A�A‚�‚ $ H@ € A�A‚�•‚ty±¹¼ØìÞèþx¶¹:ö¿î_£Ç§_¹¯:YòA,üzÖq¶¹úî‡_Ž÷ù?úx¼OÎ^®on—|XFJ•¢»Çóc§è¨ŸŸ½,üÝ+¤T)Z¡‹¤(•…´êŸv»HìžÙóx<ÿŸÏ;UŠtÑ„./6K²´^#=EâÍl¼ùÞT)ÒEs*?GJ•"]4Ú«v©R´[‰>êJš¥•qŽT—Åîi¥›#AEidwçg›«ÖŽøØûKÌba# R=öU¬©üªo²~¸²qv6ðÄkYëÓH£ÑE]h¤¡è¢^4Ò8tQGµw6ðľо¼Ž4‹ÝÙÙ�Ì‘ €U; ‘ €F‚� do¤…A‡¾²¿Ž”ê09…¬|Ëy$´þY,s$FÓeÏaö9ì¥×þwÄ8:î×H¢ïY,ĺŸÅr‰ò2œÅÊþ:,Ñý,V™óH¶8Y™9’-dfÕ”i$ÈL#A�4ÐH@#A�4ÐH@#A€ìd¯*%do${U)!{#A Ù JÐH@#A�4ÐH ]#y–Š4H×HPÑøWZ]ùÎmÌ©Ìû›;ç6æTfŽtÀîÕîw(`ÃΑúÞ-‡Ù”i¤½è"V6`#I둤ˆ.†ºcßÝãyë}ç6æ4ÚëH»é¢Ìû ³ÑæHÐÅ€«v°>4ÈÞHÎùQBöFr¥UJÈÞHPBöF‚²7’9%do$s$Jm¯yLuµŒ2×l –Ù®–‘}ŽDEž ËxÉCis^-C#iÂ.ÚɾjG!svÑŽF"Æ´]´“qŽô&§ÌÎ6Wmî«e”yiá:=½LµØýšk6@�s$`Õh$ ‘ €F‚� h$ ‘ €F‚� h¤�}¯Ðbô¾£?üªþ›Vsúüéã¯?´ö¡µv÷ÛßFŸpôÖÚïü©‘÷ïwÓèS¾<ú5lþö¯ÿz—Ñçý°m·Y–¿_$ÇU¨%ËŸv×7·»ðˆe ÒŽQT® AQ‚ $ H@ € A�A‚�‚ $ H@ ÀIkm»}èý4 ¶�‹DÑî: ����IEND®B`‚
what is this ?
i have php5.2 which has gd library installed.even then getting following error.
i will be waiting for your answers genious
regards,
nagaraja kharvi
9019055436
Thanks for the reply.Thank you very much.
The code says this is the dir and file path:string(16) "D:\xampp\php\ext" string(20) "D:\xampp\php\php.ini"
Ihave added extension=php_libharu.dll to php.ini but where to find dll file .What i have is that zipped file of libharu-2.1.0.zip(trz).where to paste and find file .If u give me clear step by step instruction that would help me a lot.This is first time i am going to pdf file using php.Please ha.......
and i have one more request is that when i tried to create chart (anytype) ,will be getting following error-even not even single time executed program.
‰PNG ��� IHDR�����Œ���(l!:��>IDATxœíÝ=NdGЋÈѬÀ"ɲÙ+pÒ19pÈ^ȉIf8²F–8 ³ÙÀ9pÐ2B€5¯Û·_Ý[uŽF-4 ªùùôQÕUï½»¿ÿÒ€ÿ礵vzú¾÷Ӏ¶ۇoz? A�A‚�‚ $ H@ € A�A‚�•‚ty±¹¼ØìÞèþx¶¹:ö¿î_£Ç§_¹¯:YòA,üzÖq¶¹úî‡_Ž÷ù?úx¼OÎ^®on—|XFJ•¢»Çóc§è¨ŸŸ½,üÝ+¤T)Z¡‹¤(•…´êŸv»HìžÙóx<ÿŸÏ;UŠtÑ„./6K²´^#=EâÍl¼ùÞT)ÒEs*?GJ•"]4Ú«v©R´[‰>êJš¥•qŽT—Åîi¥›#AEidwçg›«ÖŽøØûKÌba# R=öU¬©üªo²~¸²qv6ðÄkYëÓH£ÑE]h¤¡è¢^4Ò8tQGµw6ðľо¼Ž4‹ÝÙÙ�Ì‘ €U; ‘ €F‚� do¤…A‡¾²¿Ž”ê09…¬|Ëy$´þY,s$FÓeÏaö9ì¥×þwÄ8:î×H¢ïY,ĺŸÅr‰ò2œÅÊþ:,Ñý,V™óH¶8Y™9’-dfÕ”i$ÈL#A�4ÐH@#A�4ÐH@#A€ìd¯*%do${U)!{#A Ù JÐH@#A�4ÐH ]#y–Š4H×HPÑøWZ]ùÎmÌ©Ìû›;ç6æTfŽtÀîÕîw(`ÃΑúÞ-‡Ù”i¤½è"V6`#I둤ˆ.†ºcßÝãyë}ç6æ4ÚëH»é¢Ìû ³ÑæHÐÅ€«v°>4ÈÞHÎùQBöFr¥UJÈÞHPBöF‚²7’9%do$s$Jm¯yLuµŒ2×l –Ù®–‘}ŽDEž ËxÉCis^-C#iÂ.ÚɾjG!svÑŽF"Æ´]´“qŽô&§ÌÎ6Wmî«e”yiá:=½LµØýšk6@�s$`Õh$ ‘ €F‚� h$ ‘ €F‚� h¤�}¯Ðbô¾£?üªþ›Vsúüéã¯?´ö¡µv÷ÛßFŸpôÖÚïü©‘÷ïwÓèS¾<ú5lþö¯ÿz—Ñçý°m·Y–¿_$ÇU¨%ËŸv×7·»ðˆe ÒŽQT® AQ‚ $ H@ € A�A‚�‚ $ H@ ÀIkm»}èý4 ¶�‹DÑî: ����IEND®B`‚
what is this ?
i have php5.2 which has gd library installed.even then getting following error.
i will be waiting for your answers genious
regards,
nagaraja kharvi
9019055436
Re: php image and pdf enquiry
After a long and frustrating journey, I finally created a PDF file with HaruDoc. Most of the trouble was caused by my lack of experience with compiling extensions for PHP on Windows and was compounded by the lack of concise documentation on the subject as well as the fact that variations of the Haru source code can be found in a number of locations rather than one single location. I should have just downloaded a compiled DLL, which is what I eventually did.
Step-by-step instructions:
For the script that is outputting the PNG image as characters, add a Content-Type header.
Edit: This post was recovered from search engine cache.
Step-by-step instructions:
- Download php_haru.dll.
- Save it to your extensions folder.
- Add "extension=php_haru.dll" to your php.ini.
- Start or restart Apache.
- Copy the HaruDoc example script to a PHP file.
- Run the script.
For the script that is outputting the PNG image as characters, add a Content-Type header.
Code: Select all
header('Content-Type: image/png');
Last edited by McInfo on Thu Jun 17, 2010 1:37 pm, edited 1 time in total.
Re: php image and pdf enquiry
Dear friend,
thanks for giving me the procedure.I did that and when I started apache server alerts coming up saying
1)the application or DLL D:\xampp\php\ext\php_haru.dll is not valid windows image.please check this against your installation diskette.
2)php startup:unable to load dynamic library D:\xampp\php\ext\php_haru.dll-%1 is not a valid win32 application.
what is this actually?I use php 5.3 version.
Please solve the problem friend.
awaiting for responce.thanking you
nagaraja kharvi
thanks for giving me the procedure.I did that and when I started apache server alerts coming up saying
1)the application or DLL D:\xampp\php\ext\php_haru.dll is not valid windows image.please check this against your installation diskette.
2)php startup:unable to load dynamic library D:\xampp\php\ext\php_haru.dll-%1 is not a valid win32 application.
what is this actually?I use php 5.3 version.
Please solve the problem friend.
awaiting for responce.thanking you
nagaraja kharvi
Re: php image and pdf enquiry
The php_haru.dll that I linked to was for PHP 5.2, so you'll have to find (or compile) one for PHP 5.3. I'm sorry I can be more helpful at the moment.
Edit: This post was recovered from search engine cache.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Thu Jun 17, 2010 1:38 pm, edited 1 time in total.
Re: php image and pdf enquiry
might be you correct. I could not get the php5.3 dll file.try to install php5.1
and check out.
friend i have informed you the other problem that I getting output of special charcters that i have pasted in the earlier post .wat is that actually? it belongs to gd library.
please help na...........
pls send me If you have code for creating bar chart and creating pdf for that image and send through email.
please help for both
thank u for helping in all the way
nagaraja
and check out.
friend i have informed you the other problem that I getting output of special charcters that i have pasted in the earlier post .wat is that actually? it belongs to gd library.
please help na...........
pls send me If you have code for creating bar chart and creating pdf for that image and send through email.
please help for both
thank u for helping in all the way
nagaraja
Re: php image and pdf enquiry
The server responded with a "Content-Type: text/html" header, so the browser does its best to display the content as HTML. PNG is a binary format, so the content appears as scrambled characters. You need to tell the server to send a "Content-Type: image/png" header. I posted the PHP code for that earlier.nagrgk wrote:friend i have informed you the other problem that I getting output of special charcters that i have pasted in the earlier post .wat is that actually? it belongs to gd library.
If you want someone to write the code for you, please post your requirements in the Job Hunt or Volunteer Work forum.nagrgk wrote:pls send me If you have code for creating bar chart and creating pdf for that image and send through email.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Thu Jun 17, 2010 1:38 pm, edited 1 time in total.
Re: php image and pdf enquiry
thank you very much
i will get back to you
i will get back to you