Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]problem z imagecreatefromgif
-hobibit-
post
Post #1





Goście







Nie działa mi fragment kodu z funkcją: imagecreatefromgif.

  1. <?php
  2. if (function_exists('imagecreatefromgif')){echo 'jest';}
  3. $obrazek_tymczasowy = imagecreatefromgif("pliki/qwe.gif");
  4. ?>


  1. jest
  2. Warning: imagecreatefromgif() [function.imagecreatefromgif]: 'pliki/qwe.gif' is not a valid GIF file in /home/hobibit/public_html/art/index.php on line 71


Fragment z phpinfo():
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
Powód edycji: dodanie tagu ~Cienki1980
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bartg
post
Post #2





Grupa: Zarejestrowani
Postów: 226
Pomógł: 25
Dołączył: 4.07.2007
Skąd: Berlin

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


Bim dobrze wiesz że tam z naszej funkcji była excepcja Syda i najprościej dla mnie było dać die. Dodatkowo jeśli nie ma obrazka to po co dalej robić (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) . Najwyżej dac w ifce else i dac jakis domyślny img.
  1. <?php
  2. if(!file_exists($sFile))
  3. {
  4. sFile = 'sciezka domyslnego obrazka pokazujace go jakis blad';
  5. }
  6. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 06:22