Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL][PHP]Phplot "instalacja"
rafalekjan
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 15.11.2010

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


Dane pobierane są z bazy danych i mają być wyświetlane na wykresie. Server to "Krasnal serv". Ściągnąłem paczkę phplot i..
Na pozór banalne polecenie:
Cytat
INSTALLATION:

Unpack the distribution. (If you are reading this file, you have probably
already done that.)

Installation of PHPlot simply involves copying three script files somewhere
your PHP application scripts will be able to find them. The scripts are:
phplot.php
phplot_data.php
rgb.inc.php
(Only phplot.php is necessary for most graphs.)
Make sure the protections on these files allow the web server to read them.

Jednak przy odpaleniu stronki i po wejściu na wykres ukazuje mi się informacja:
Cytat
Fatal error: Cannot instantiate non-existent class: phplot in c:\usr\apache\httpd\html\wykres.php on line 96

Linia 96:
Cytat
$plot = new phplot($x,$y);

Czyli tak jakby dalej nie widział skryptu phplot.

Jakieś sugestie?
Go to the top of the page
+Quote Post
d3ut3r
post
Post #2





Grupa: Zarejestrowani
Postów: 709
Pomógł: 176
Dołączył: 24.10.2010

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


pokaż co masz przed linią 96, czy poprawnie dołączasz wskazane pliki ? (phplot.php itd.). I taka mała sugestia, wyrzuć krasnala i zainstaluj XAMPP o wiele lepszy moim zdaniem.

Ten post edytował d3ut3r 15.11.2010, 21:00:10
Go to the top of the page
+Quote Post
CuteOne
post
Post #3





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

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


A drogie pan zaincludował phplot.php??

  1. <?php
  2. require 'phplot.php'; // podaj odpowiednią ścieżkę do pliku
  3. $plot = new phplot($x,$y);
  4. ?>
Go to the top of the page
+Quote Post
rafalekjan
post
Post #4





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 15.11.2010

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


Właśnie, nie był zainicjowany (IMG:style_emoticons/default/winksmiley.jpg) Dzięki (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 11.03.2026 - 15:49