![]() ![]() |
Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 2.11.2005 Ostrzeżenie: (0%)
|
Mam problem z wyswietlaniem wykresów w klasie phplot ale tylko wtedy jeżeli prócz danego wykresu maja zostać wyświetlone jakies wartosci ,przytaczam przykład kodu:
chodzi o drugą linijke w petli for jak jest za znakami komentarza jest wszystko ok a to jest wyrzucane: Klucz = 2000 Wartosc = 16177 Klucz = 2001 Wartosc = 1558 Klucz = 2002 Wartosc = 31639 Klucz = 2003 Wartosc = 20868 Klucz = 2004 Wartosc = 7533 Klucz = 2005 Wartosc = 28066 Klucz = 2006 Wartosc = 14899 Klucz = 2007 Wartosc = 496 Klucz = 2008 Wartosc = 9065 Klucz = 2009 Wartosc = 16878 Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1090 Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1091 Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1092 Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1093 Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1099 �PNG i jakies krzaki... (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) |
|
|
|
Post
#2
|
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%)
|
phpplot wypluwa JPEGa (z tego co widze), wysyla odpowiednie naglowki (headers, za pomoca header()) a ty wczesniej wysylasz dane (Klucz = 2000, Wartosc = 16177, itd) -- czyli mieszasz text z plikiem graficznym.
Utorz inny plik, ktory wyswietli te dane, i zawiera html z tagiem <img src="wygeneruj_wykres_za_pomoca_phpplot.php" .... />. W wygeneruj_wykres_za_pomoca_phpplot.php generujesz tylko graf za pomoca phpplot i wyswietlasz go. |
|
|
|
Post
#3
|
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 2.11.2005 Ostrzeżenie: (0%)
|
czy miałoby to wyglądać dosłownie następująco:
plik p1.php :
i plik p2.php :
i uruchamiam p2.php (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? |
|
|
|
Post
#4
|
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%)
|
Dokladnie, wystarczylo sprawdzic.
|
|
|
|
Post
#5
|
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 2.11.2005 Ostrzeżenie: (0%)
|
|
|
|
|
Post
#6
|
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%)
|
Pomysl troche (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Kod html umieszczasz wewnatrz tagow <?php ... ?>, umieszc <img / > poza nimi. |
|
|
|
Post
#7
|
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 2.11.2005 Ostrzeżenie: (0%)
|
heh ale jestem lamerem (IMG:http://forum.php.pl/style_emoticons/default/guitar.gif) (IMG:http://forum.php.pl/style_emoticons/default/guitar.gif) (IMG:http://forum.php.pl/style_emoticons/default/guitar.gif) (IMG:http://forum.php.pl/style_emoticons/default/guitar.gif) thx
|
|
|
|
![]() ![]() |
|
Aktualny czas: 1.01.2026 - 06:23 |