Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,183,418 members, 7,920,584 topics. Date: Wednesday, 14 August 2024 at 09:43 AM |
Nairaland Forum / Science/Technology / Programming / Need Help With Some Php Scripts (1285 Views)
I Will Help You Learn Php(scripts, And Tutorials) Fiverr =d / Whois Scripts Is Needed (2) (3) (4)
Need Help With Some Php Scripts by WhoIGoAsk: 8:58am On Jul 07, 2012 |
Hello NL programmers, please i'm trying to use a id card php script that i got from Ibm developers http://www.ibm.com/developerworks/opensource/library/os-php-gamescripts3/ and i'm running into sosme error. I'll appreciate anybody that can help fix this. <?php |
Re: Need Help With Some Php Scripts by WhoIGoAsk: 9:47am On Jul 07, 2012 |
the id card test template
|
Re: Need Help With Some Php Scripts by kadeerna: 10:03am On Jul 07, 2012 |
Hi, with versions of php_gd2, you have to append a ".ttf" to the font name passed to the imagettftext function.(http://php.net/manual/en/function.imagettftext.php) So your code becomes:
Also, the font file "tarzeau_-_OCR-A" has to be in the same directory from the one this script is run from. Needless to add, you can remove the font file to a variable.
|
Re: Need Help With Some Php Scripts by WhoIGoAsk: 10:29am On Jul 07, 2012 |
Thanks Kadeerna, i'll try it again as you explained, and will surely leave a feedback here for other programmers Regards |
Re: Need Help With Some Php Scripts by WhoIGoAsk: 2:16am On Jul 08, 2012 |
it worked, though i had to change the font file. the next challenge is adding a save image button to the output image |
Re: Need Help With Some Php Scripts by WhoIGoAsk: 4:57am On Jul 08, 2012 |
done with Content-Disposition: attachment; |
(1) (Reply)
I Need A Free Ocr Sdk / Biology Android App: Reviews and Suggestions are welcome / Teach Yourself Python
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15 |