Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [gd] pochlania cala pamiec :/
-gox-
post
Post #1





Goście







mam problem,
ja mu:

$img = imagecreatefromgd('http://www.europarl.europa.eu/mepphoto/23780.jpg');

a on na to:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 65496 bytes)

zdjecie ma 28KB....

bug w php czy jaki gadryl?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
-gox-
post
Post #2





Goście







robie tak:

$fp = fopen('http://www.europarl.europa.eu/mepphoto/23780.jpg', 'r');
$d='';while(!feof($fp))$d.=fread($fp, 1024);fclose($fp);
$img = imagecreatefromstring($d);

i dziala, co nie zmienia faktu ze cos jest z ta funkcja fromgd [zmoderowane].
Go to the top of the page
+Quote Post
webdice
post
Post #3


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




1. Nie piszemy posta pod postem. Chcesz mieć możliwość edycji? Zarejestruj się.
2. Wulgaryzmy.

Zamykam.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 19:51