Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]problem z image.php?
-Pitt-
post 13.10.2008, 19:13:30
Post #1





Goście







Mam problem z wyświetlaniem się tekstu w tokenie z literami.

gdy odwołać się do niego bezpośrednio http://prostezycie.boo.pl/boom/login.php?r= wszystko jest ok, jednak przy odwołaniu się przez domenę skierowaną na folder boom nic się nie pojawia poza błędem do image.php http://buxboom.com/login.php?r=


Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 30

Warning: Division by zero in /home/accounts_p/prostezycie/public_html/boom/image.php on line 32

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42

Warning: Wrong parameter count for imagestring() in /home/accounts_p/prostezycie/public_html/boom/image.php on line 43

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42

Warning: Wrong parameter count for imagestring() in /home/accounts_p/prostezycie/public_html/boom/image.php on line 43

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42


I tak dalej....

chodzi o to, że nie znajduję fonta do generacji kodu gdy odwoływać się przez domenę.

wycinek kodu php skryptu: (nie śmiać sie - po hiszpańsku)

// Creo el color del texto, del texto del fondo y del fondo de la imagen
$gris = ImageColorAllocate($im, 247, 247, 247);
$colorLetra = ImageColorAllocate($im, 105, 159, 189);
$colorLetraFondo = ImageColorAllocate($im, 247, 247, 247);


// tipo de letra obtenido en dafont.net
$fuente = './image2.ttf';

// Calculo el número de líneas que entran
$caja_texto = imagettfbbox($tam_letra, 0, $fuente , $letras);
$alto_linea = abs($caja_texto[7]-$caja_texto[1]);
$num_lineas = intval($alto_caja / $alto_linea)+1;


może trzeba zmienić odniesienie do fonta? Jest on teraz w tym samym folderze co sktypt. Umieszczenie go "wyżej i niżej" nic nie pomaga.

Ma ktoś pomysl?
Go to the top of the page
+Quote Post
Maxik
post 13.10.2008, 19:37:36
Post #2





Grupa: Zarejestrowani
Postów: 726
Pomógł: 129
Dołączył: 10.01.2008
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


Zamiast ./image2.ttf daj po prostu image2.ttf


--------------------
Pomogłem? Kliknij przycisk Pomógł pod pomocnym Ci postem.
http://maxik.me/
Go to the top of the page
+Quote Post
-Pitt-
post 13.10.2008, 19:42:47
Post #3





Goście







Juz tak robilem i nic nie daje poza tym ze nawet na sciezce z boo znika token....
Go to the top of the page
+Quote Post
-Pitt-
post 14.10.2008, 07:45:37
Post #4





Goście







i jakieś pomyśły........?
Go to the top of the page
+Quote Post
thm
post 14.10.2008, 07:58:01
Post #5





Grupa: Zarejestrowani
Postów: 52
Pomógł: 10
Dołączył: 6.10.2008
Skąd: Lublin

Ostrzeżenie: (0%)
-----


Kod
$fuente = '/boom/image2.ttf';
?
Go to the top of the page
+Quote Post
-Pitt-
post 14.10.2008, 20:22:15
Post #6





Goście







Nic nie pomaga....
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 17.06.2025 - 14:31