Version php de graphweather

Répondre
siegfried
Membre
Messages : 44
Inscription : lun. juil. 31, 2006 1:08 pm
Contact :

Message par siegfried »

C'est encore moi ;-)

J'ai installé la version php de graph weather sur un serveur Linux.
J'ai fait un cron pour copier le history.dat vers le bon repertoire du script, la tout est ok.

Heavyweather fonctionne bien sous linux avec wine.

La base Sql s'est bien remplie, mais quand j'essaye de faire une requete sur graph.php, j'obtiens ceci:

[client 192.168.1.20] PHP Notice: Undefined variable: stop in /srv/www/htdocs/webcam/graph/graph.php on line 80
[client 192.168.1.20] PHP Notice: Undefined variable: start in /srv/www/htdocs/webcam/graph/graph.php on line 80
[client 192.168.1.20] PHP Notice: Undefined variable: stop in /srv/www/htdocs/webcam/graph/graph.php on line 85
[client 192.168.1.20] PHP Notice: Undefined variable: start in /srv/www/htdocs/webcam/graph/graph.php on line 85
[client 192.168.1.20] PHP Notice: Undefined variable: stop in /srv/www/htdocs/webcam/graph/graph.php on line 118
[client 192.168.1.20] PHP Notice: Undefined variable: start in /srv/www/htdocs/webcam/graph/graph.php on line 118
[client 192.168.1.20] PHP Notice: Undefined variable: y1data in /srv/www/htdocs/webcam/graph/graph.php on line 137
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 137
[client 192.168.1.20] PHP Notice: Undefined variable: y2data in /srv/www/htdocs/webcam/graph/graph.php on line 138
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 138
[client 192.168.1.20] PHP Notice: Undefined variable: y3data in /srv/www/htdocs/webcam/graph/graph.php on line 139
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 139
[client 192.168.1.20] PHP Notice: Undefined variable: y4data in /srv/www/htdocs/webcam/graph/graph.php on line 140
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 140
[client 192.168.1.20] PHP Notice: Undefined variable: y5data in /srv/www/htdocs/webcam/graph/graph.php on line 141
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 141
[client 192.168.1.20] PHP Notice: Undefined variable: y6data in /srv/www/htdocs/webcam/graph/graph.php on line 142
[client 192.168.1.20] PHP Warning: Wrong parameter count for max() in /srv/www/htdocs/webcam/graph/graph.php on line 142
[client 192.168.1.20] PHP Notice: Undefined variable: y1data in /srv/www/htdocs/webcam/graph/graph.php on line 145
[client 192.168.1.20] PHP Warning: Wrong parameter count for min() in /srv/www/htdocs/webcam/graph/graph.php on line 145
[client 192.168.1.20] PHP Notice: Undefined variable: y2data in /srv/www/htdocs/webcam/graph/graph.php on line 146
[client 192.168.1.20] PHP Warning: Wrong parameter count for min() in /srv/www/htdocs/webcam/graph/graph.php on line 146
[client 192.168.1.20] PHP Notice: Undefined variable: y3data in /srv/www/htdocs/webcam/graph/graph.php on line 147
[client 192.168.1.20] PHP Warning: Wrong parameter count for min() in /srv/www/htdocs/webcam/graph/graph.php on line 147
[client 192.168.1.20] PHP Notice: Undefined variable: y4data in /srv/www/htdocs/webcam/graph/graph.php on line 148
[client 192.168.1.20] PHP Warning: Wrong parameter count for min() in /srv/www/htdocs/webcam/graph/graph.php on line 148
[client 192.168.1.20] PHP Notice: Undefined variable: y5data in /srv/www/htdocs/webcam/graph/graph.php on line 149
[client 192.168.1.20] PHP Warning: Wrong parameter count for min() in /srv/www/htdocs/webcam/graph/graph.php on line 149
[client 192.168.1.20] PHP Notice: Undefined variable: y2data in /srv/www/htdocs/webcam/graph/graph.php on line 158
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 164
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 164
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 164
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 165
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 169
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 169
[client 192.168.1.20] PHP Notice: Undefined variable: y7data in /srv/www/htdocs/webcam/graph/graph.php on line 169
[client 192.168.1.20] PHP Notice: Undefined variable: timestamp in /srv/www/htdocs/webcam/graph/graph.php on line 210
[client 192.168.1.20] PHP Fatal error: Call to undefined method Text::Pos() in /srv/www/htdocs/webcam/graph/graph.php on line 229


Si je fais une requete sur graphweather.php:

[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Notice: Undefined variable: delta in /srv/www/htdocs/webcam/graph/graphweather.php on line 97
[client 192.168.1.20] PHP Fatal error: Call to undefined method Text::Pos() in /srv/www/htdocs/webcam/graph/graph.php on line 229, referer: http://serveur:7070/graph/graphweather.php


Est ce que cela vous parle?

N'y a t'il pas des parametres a passer dans l'url?

L'url de mon serveur: http://nuage.webnature.net:7070/graph/graphweather.php

J'oubliais, j'utilise PHP5.0.4 avec JpGraph 2.1.2

Merci de votre aide (surtout que ca m'a l'air tres sympa comme script et tout a fait ce que je recherche) ;-)
Dernière modification par siegfried le lun. juil. 31, 2006 3:18 pm, modifié 1 fois.
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Salut,

Il faut en effet passer des paramètres dans l'url (les données du formulaire normalement), par contre les variables globales pour php doivent être activées. Il me semble que pour des raisons de sécurité elles sont désactivées dans la version 5. Les erreurs proviennent certainement de là.
Je pense que ca doit se modifier facilement dans le script, il n'est pas tres compliqué (mais mal commenté :) )
siegfried
Membre
Messages : 44
Inscription : lun. juil. 31, 2006 1:08 pm
Contact :

Message par siegfried »

J'ai bien Register globals à on.
mais il n'y a rien qui sort, si quelqu'un a fait l'experience sur un serveur lamp ...

Mais c'est surtout cela qui me gene:
PHP Fatal error: Call to undefined method Text::Pos() in /srv/www/htdocs/webcam/graph/graph.php on line 229, referer: http://serveur:7070/graph/graphweather. ... solution=4

Je pense que ca doit venir de là, je cherche sur google ...
Dernière modification par siegfried le mar. août 01, 2006 10:42 am, modifié 1 fois.
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Text::Pos() doit probablement venir de JPGraph. J'utilise la version 1.19, apparement il n'y a pas ce problème.
Il y a peut-etre eu un changement entre les deux versions, il faudrait voir si cette méthode Text::Pos() existe toujours.
siegfried
Membre
Messages : 44
Inscription : lun. juil. 31, 2006 1:08 pm
Contact :

Message par siegfried »

En effet, de plus tu dois tester sur PHP4 ...

Mais j'ai changé de solution, j'ai installé windows 2000 émulé sur mon serveur linux, et là je m'éclate avec les feuilles de styles, tu fais un super boulot, chapeau !!!
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Et bien c'est super que ca puisse marcher sous linux aussi. Le script php est bien, mais trop lent au final. Bon courage pour les feuilles de style, la syntaxe n'est pas assez documentée mais il y a suffisament d'exemples pour y comprendre quelquechose :D
siegfried
Membre
Messages : 44
Inscription : lun. juil. 31, 2006 1:08 pm
Contact :

Message par siegfried »

Encore merci, c'est rare de voir un si bon logiciel et de plus gratuit, ca mérite bien un don ... de plus tu reponds très rapidement sur le forum, bref c'est vraiment un tres bon projet!
pinto
Membre
Messages : 11
Inscription : jeu. août 17, 2006 9:34 pm
Localisation : Kampenhout, Belgie
Contact :

Message par pinto »

siegfried a écrit :J'oubliais, j'utilise PHP5.0.4 avec JpGraph 2.1.2

Merci de votre aide (surtout que ca m'a l'air tres sympa comme script et tout a fait ce que je recherche) ;-)
http://www.joske-online.be/downloads/Gr ... h2.1.2.zip

j'ai change quelques lignes et ca marche pour moi
Dernière modification par pinto le jeu. août 17, 2006 9:39 pm, modifié 1 fois.
SiegfriedM

Message par SiegfriedM »

Merci je vais essayer ;-)
Répondre