|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello,
I'm having this annoying problem for 3 days now and can't find a solution I made a script for creating images using GD, under mod_cgi it works just fine, but once I run it under mod_perl it gives a blank page, it's not a matter of persistent variable because when I change "stringFT" to "string" the script start to work under mod_perl as well $image->stringFT($black,'/path/to/truetype.ttf',18,0.0,60,10,"some text"); this gives a blank page $frame->string(gdTinyFont, 390, 48, "some text", $black); but changing to "string" the script run just fine under mod_perl I want stringFT to work under mod_perl ![]() Please help as this cosuming my life and strangly no solution any where else Thanks in advance |
|
#2
|
||||
|
||||
|
I've recently been playing about with GD,
has worked for me, could it be that the root directory is different under mod_perl, and that it can't find the font, try copying the font file into the same directory as the script and see if that sorts it. Mod_perl may have some security which jail roots the script in terms of what it can access
__________________
--Ax without exception, there is no rule ... The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski |
|
#3
|
|||
|
|||
|
Thanks Axweildr,
I already did that, you will not believe me if I said that during these three days I tried every thing, I recompiled libgd and installed GD again and again thinking it's a freetype issue and mod_perl can't find freetype library, and I'm having really odd results every time I configure the server, so it's more likely a server issue not a script |
|
#4
|
||||
|
||||
|
|
|
#5
|
|||
|
|||
|
Axweildr sorry for the late and thanks for your help effort
Yes I did point the path to the same folder and moved font file there too, and else I use mod perl to handle files in another path and all works just fine It's the first time I feel so desperate and the first time I think to get another server just to solve this issue |
|
#6
|
||||
|
||||
|
did the "or die $!" produce any relevant output?
|
|
#7
|
|||
|
|||
|
No just white blank page, that's what really annoying, why there is no error message?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > StringFT under mod_perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|