[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gulliver] recherche de composants pour kicad : kico est né


From plaunay1 <pierre dot launay at ac-rennes dot fr>
Subject Re: [gulliver] recherche de composants pour kicad : kico est né
Date Wed, 07 Nov 2007 13:20:59 +0100

Gilles LAMIRAL a écrit :
Bonjour,

l'un apres l'autre mais j'ai toujours une erreur 505, (sans les numero
et les # quand meme !)

Que disent les logs du serveur web ?


voir à la fin
Pour ta solution, j'ai eu un soucis
  perl kico SEARCHED_TEXT=DS1307 >out.html
[Tue Nov  6 01:19:00 2007] kico: Use of uninitialized value in
concatenation (.) or string at (eval 13) line 15.

C'est juste un warning. Ignore le.


J'ai du commenter la ligne #start_form(),
décommenter

Il ne faut pas, elle est essentielle via HTTP.


Ca marche mais il faudrait pouvoir faire une recherche minuscules ou
majuscules comme grep -i

- my @matched_composants = grep { m/$searched_text/ } @all_composants; + my @matched_composants = grep { m/$searched_text/i } @all_composants;


merci, c'est fait

voici les log dans /var/log/lighttpd/error.log

"Unterminated <> operator at /var/www/site/php_kicad/kico.cgi line 1. "<- pour kico.cgi

À partir d'ici pour kicado.cgi
"Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 2, near ""http://www.w3.org/1999/xhtml"; lang"
(Missing operator before lang?)
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 2, near ""en-US" xml"
(Missing operator before xml?)
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 5, near "<meta http-equiv="Content-Type" content="text/html"
(Might be a runaway multi-line // string starting on line 4)
(Missing operator before html?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 9, near "<form method=""
(Might be a runaway multi-line "" string starting on line 5)
(Missing semicolon on previous line?)
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 9, near "<form method="post"
(Missing operator before post?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 9, near "post" action=""
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 9, near "cgi" enctype=""
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 9, near "" enctype="multipart"
(Missing operator before multipart?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 10, near "Valeur : <input type=""
(Might be a runaway multi-line "" string starting on line 9)
(Missing semicolon on previous line?)
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 10, near "Valeur : <input type="text"
(Do you need to predeclare Valeur?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 10, near "text" name=""
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 10, near "" name="SEARCHED_TEXT"
(Missing operator before SEARCHED_TEXT?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 11, near "<input type=""
(Might be a runaway multi-line "" string starting on line 10)
(Missing semicolon on previous line?)
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 11, near "<input type="submit"
(Missing operator before submit?)
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 11, near "submit" name=""
String found where operator expected at /var/www/site/php_kicad/kicado.cgi line 11, near "submit" value=""
Bareword found where operator expected at /var/www/site/php_kicad/kicado.cgi line 11, near "" value="Cherche"
(Missing operator before Cherche?)
syntax error at /var/www/site/php_kicad/kicado.cgi line 2, near ""http://www.w3.org/1999/xhtml"; lang"
syntax error at /var/www/site/php_kicad/kicado.cgi line 9, near "<form method=""
Can't find string terminator '"' anywhere before EOF at /var/www/site/php_kicad/kicado.cgi line 11."


voici kico.cgi
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
<head>
<title>Recherche de composants</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h1>Recherche de composants</h1>
<form method="post" action="/php_kicad/kico.cgi" enctype="multipart/form-data">
Valeur: <input type="text" name="SEARCHED_TEXT" />
<input type="submit" name=".submit" value="Cherche Médor" />
</form>


</body>
</html>

Comme il bloquait j'ai regroupé la première ligne de < à > pour kicado.cgi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
<head>
<title>Recherche de composants</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h1>Recherche de composants</h1>
<form method="post" action="/site/php_kicad/kicado.cgi" enctype="multipart/form-data">
Valeur: <input type="text" name="SEARCHED_TEXT" />
<input type="submit" name=".submit" value="Cherche Composant" />
</form>


</body>
</html>

Ici même si cela n'apparait pas à l'écran toutes les lignes commencent par < et finissent par >
Si j'ai un peu compris le message les 3 erreurs sont les 3 lignes de la fin (ligne 2;9;11)


Pierre