Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> [gd] pochlania cala pamiec :/
-gox-
post 9.09.2008, 01:35:06
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
-gox-
post 9.09.2008, 01:51:23
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 9.09.2008, 09:06:18
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 Wersja Lo-Fi Aktualny czas: 28.06.2025 - 04:04