Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> PHP i GD
Picia
post 29.03.2003, 14:27:34
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

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


Mam php 4.3.1 wlasnie skompilowane, na 100% z GD:

GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled

Zrodlo takie:
<?
Header("Content-type: image/jpeg");
$im = imagecreatefromjpeg("image2.jpg");
Imagejpeg($im,'',20);
ImageDestroy($im);
?>

I komunikat o bledzie:
<br />
<b>Fatal error</b>: Call to undefined function: imagecreatefromjpeg() in <b>/home/www/piotrs/grafika.php</b> on line <b>15</b><br />


Podobny komunikat wywala mi sie rowniez w komendzie imagejpeg dla wyniku. Co zrobic? Czemu nie dziala?


--------------------
PHP the BEST
Go to the top of the page
+Quote Post
KaMeLeOn
post 29.03.2003, 14:43:30
Post #2





Grupa: Zarejestrowani
Postów: 680
Pomógł: 0
Dołączył: 1.10.2002
Skąd: Wrocław

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


Cytat
GD Support  enabled  
GD Version  bundled (2.0 compatible)  
GIF Read Support  enabled  
PNG Support  enabled  
WBMP Support  enabled


A czy widzisz tu obsługę JPEG ?


--------------------
"Czerp z innych, ale nie kopiuj ich. Bądź sobą." Michel Quoist
Go to the top of the page
+Quote Post
Picia
post 29.03.2003, 14:46:05
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

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


a co mozna zrobic zeby byla obsluga JPEG?


--------------------
PHP the BEST
Go to the top of the page
+Quote Post
KaMeLeOn
post 29.03.2003, 14:49:00
Post #4





Grupa: Zarejestrowani
Postów: 680
Pomógł: 0
Dołączył: 1.10.2002
Skąd: Wrocław

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


Kod
--with-jpeg-dir=/usr/lib


--------------------
"Czerp z innych, ale nie kopiuj ich. Bądź sobą." Michel Quoist
Go to the top of the page
+Quote Post
Picia
post 29.03.2003, 14:53:30
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

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


Tak kompilowac na nowo, czy jak?


--------------------
PHP the BEST
Go to the top of the page
+Quote Post
wassago
post 31.03.2003, 12:07:53
Post #6





Grupa: Przyjaciele php.pl
Postów: 701
Pomógł: 0
Dołączył: 26.06.2002
Skąd: Londyn

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


Moze z innej beczki: jak sie kompiluje php z GD2.0??
Gdzie mogl bym troche o tym poczytac?? - w zasadzie ogolnie o kompilacji php...
Go to the top of the page
+Quote Post
Picia
post 31.03.2003, 15:00:54
Post #7





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

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


'./configure' '--with-apxs' '--with-mysql' '--with-config-file-path=/sciezka' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-zlib'

Moze tak? Tam gdzie sciezka podajesz sciezke pliku z configuracja-folder. Jesli jpegi ma akceptowac dodatkowo to tak jak widzisz smile.gif Mozesz uciac MySQL biggrin.gif.

3maj sie


--------------------
PHP the BEST
Go to the top of the page
+Quote Post
Picia
post 31.03.2003, 15:04:52
Post #8





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

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


Aha.
Poczytac:
www.php.net


--------------------
PHP the BEST
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: 12.07.2025 - 12:36