Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem w GD2 poł. z preg_match
SSB
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 21.12.2008
Skąd: Świnoujście

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


Witam!
Mam problem
Mianowicie tak:
Mam take części kodu:
  1. $zrodlo = file_get_contents('http://4story.pl/lexicon/charinfo/'.$_GET['nick'].'/1');
  2. preg_match('|<img src="http://4story.pl/leximg/icons/faces/face([0-9]{0,4})|', $zrodlo, $lepetyna);
  3. $leb=iamgecreatefromjpeg('http://4story.pl/leximg/icons/faces/face'.$lepetyna.'.jpg');
  4. imagecopymerge($obrazek, $leb, 0, 0, 0, 0, 38, 38, 100);

Niby wszystko piękne, ale przy włączeniu skryptu wywala błąd:

  1. Warning: imagecreatefromjpeg(http://4story.pl/leximg/icons/faces/faceArray.jpg) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/lala/domains/lala/public_html/4story/st.php on line 22


Linia 22 to jest $leb

Probowalem tez tak:

  1. $lepek=('http://4story.pl/leximg/icons/faces/face'.$lepetyna.'.jpg');
  2. $leb=imagecreatefromjpeg($lepek);

Ale błąd ten sam
W czym robię błąd?
Pozdrawiam
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 Aktualny czas: 21.08.2025 - 10:27