Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Dodawanie zdjęć na stronie problem
delfinek28
post 13.07.2012, 17:37:08
Post #1





Grupa: Zarejestrowani
Postów: 38
Pomógł: 0
Dołączył: 8.05.2009

Ostrzeżenie: (10%)
X----


Witam jak dodaję zdjęcie na stronie to wyskakuje mi komunikat:

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /home/admin/domains/orandki.pl/public_html/modules/profile.php on line 229

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /home/admin/domains/orandki.pl/public_html/modules/profile.php on line 229

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/admin/domains/orandki.pl/public_html/modules/profile.php on line 229

Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /home/admin/domains/orandki.pl/public_html/modules/profile.php on line 262


Poniżej wstawię kod z tego pliku z linijek 229 i 262

Kod
229    $img = imagecreatefromstring(file_get_contents($_FILES['profilowe']['tmp_name']));


Kod
262  imagecopyresampled($dst_img,$img,0,0,0,0,$nw,$nh,$size[0],$size[1]);


Proszę o pomoc, co tam jest nie tak czy coś trzeba dopisać ?
Go to the top of the page
+Quote Post

Posty w temacie


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: 19.07.2025 - 16:00