![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 377 Pomógł: 9 Dołączył: 2.11.2010 Ostrzeżenie: (0%) ![]() ![]() |
Część mam taki problem:
Wpisuję kilka danych w formularzu i później przesyłam je do php i tworzę obrazek, kilka obrazków, mniej więcej takie coś chce zrobić tylko ze w php: ![]() Wyciąłem dwie tabelki ( z nr 1 i z nr 2 ) ponieważ różnią się one, nr 1 ma pierwsze pole czerwone, a nr drugi i kolejne mają już normalne pola, zrobiłem sobie taki skrypt:
I od początku, czy stworzy mi się takich np: 40 kolumn w tym 1 z numerem 1 (z inną grafiką) a 39 z resztą taką samą grafiką ![]() I czemu wyświetlaja mi się takie błędu: Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at F:\Program Files\WebServ\httpd\indexx.php:5) in F:\Program Files\WebServ\httpd\indexx.php on line 10 PNG IHDR9ěđ Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in F:\Program Files\WebServ\httpd\indexx.php on line 53 Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in F:\Program Files\WebServ\httpd\indexx.php on line 53 |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 2 958 Pomógł: 574 Dołączył: 23.09.2008 Skąd: wiesz, że tu jestem? Ostrzeżenie: (0%) ![]() ![]() |
nie możesz wstawić header() do pętli.. ale wiedział byś to gdybyś poczytał czym są nagłówki. Po drugie przed znacznikiem <?php nie może się znaleźć kod html. Po trzecie jaki jest sens tworzenia takich obrazków? jeżeli chcesz mieć wyświetlanie napisu nad obrazkiem wystarczy, że dla diva ustawisz background z urlem do danego obrazka - więcej na google
Ten post edytował CuteOne 31.08.2011, 12:33:31 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 377 Pomógł: 9 Dołączył: 2.11.2010 Ostrzeżenie: (0%) ![]() ![]() |
Wiem, że to nie ma sensu, ale chciałbym generować taki obrazek (tylko, że duży nie tylko ta jedna kolumna) później go zapisywać do pliku całosc.png, zmieniłem troszkę kod:
I doświadczenia: Grafika nie jest taka jaką sobie wygenerowałem w Photoshopie, tzn zamiast takich ukośnych boków (patrz na obrazek u góry) są to prostokąty, kolejna uwaga, wyświetla mi się tylko numer zawodnika, a wpisałem: 1|abc|cde|222|333 Jakieś pomysły macie, jak poprawić ? |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 2 958 Pomógł: 574 Dołączył: 23.09.2008 Skąd: wiesz, że tu jestem? Ostrzeżenie: (0%) ![]() ![]() |
Poczytaj o przezroczystości w png. Hmm może obrazek za krótki i wpisuje ci tylko pierwszy tekst
![]() ![]() |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 377 Pomógł: 9 Dołączył: 2.11.2010 Ostrzeżenie: (0%) ![]() ![]() |
Są postępy:
Obrazek jest przeźroczysty Ale są też błędy: Obrazek ma szerokości: 569px, a ja najdalej tekst jest w 446px, i nie wiem czemu nie działa w polu tekstu wpisuję np.: " 1|2|3|4|5 " a wyświetla się tylko "1", reszta nie, nawet 2 powinna być wyświetlona, ale jest jeszcze jeden problemik jak wyświetlić drugiego zawodnika ? ![]() " 1|a1|b1|c1|d1 2|a2|b2|c2|d2 3|a3|b3|c3|d3 4|a4|b4|c4|d4 " Jak zrobić ? Edit: Kod PHP wygląda tak:
Ten post edytował Giluś 31.08.2011, 13:00:02 |
|
|
![]()
Post
#6
|
|
![]() Grupa: Opiekunowie Postów: 3 855 Pomógł: 317 Dołączył: 4.01.2005 Skąd: że ![]() |
Ja bym użył ImageCopyResampled, żeby poskładać wszystko do kupy.
-------------------- Jak poprawnie zadać pytanie | Jak poprawnie zatytułować wątek
Najczęstsze błędy | Błędy E_NOTICE | PHP FAQ | FAQ PHPedia | SQL-Injection | Logowanie i sesje | Hashowanie haseł | Server - od czego zacząć ? | Manual PHP Alternatywne Forum dla Ekspertów Nie pomagam na PW, nie mam GG |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 13.08.2025 - 22:19 |