Php interfaces

[email protected] Mon, 28 Jan 2008 17:39:26 +0100
Newsgroups gmane.comp.gnu.gift.general
Message-ID <[email protected]>
Yes, I&#39;ve tried to use http://URL instead file:/URL but nothing changes.



I&#39;ve downloaded from
http://sourceforge.net/project/showfiles.php?group_id=116038 and
http://viper.unige.ch/demo/php/demo.php a PHP interfaces but the first give
me an GIFT ERROR the second I can&#39;t make it work.&nbsp; Can you
reccomend a php interface easy to
use?Thanks&nbsp;&nbsp;&nbsp;&nbsp;--------- Original Message --------

 	Da: &quot;Henning M&uuml;ller&quot; &lt;[email protected]&gt;
	To:  	        Cc: [email protected] 	Oggetto: Re: [help-gift] problem with
Charmer 	Data: 28/01/08 17:23 	 	   Have you tried using http:// URLs
instead of the file:/ URLs? If I remember correctly this could be part of
the problem. Otherwise I  am not sure whether the charmer interface is still
in use somewhere. I would recommand using one of the php interfaces that are
more lightweight.  Cheers, Henning  [email protected] wrote: &gt;
Hello! &gt;  &gt; Well...   &gt;  &gt; As written in last mail after I
connected to the gift server I can&#39;t see  &gt; any pictures in the
charmer frame. I&#39;ve read in this links &gt;  &gt;
http://lists.gnu.org/archive/html/help-gift/2002-03/msg00040.html &gt;
http://lists.gnu.org/archive/html/help-gift/2006-10/msg00008.html &gt;
http://lists.gnu.org/archive/html/help-gift/2004-09/msg00003.html &gt;
http://lists.gnu.org/archive/html/help-gift/2004-04/msg00013.html &gt;  &gt;
some solutions, so I tried to apply them. &gt;  &gt; I&#39;ve launched the
client (with appletview Charmer.html) from the same  &gt; location of the
images. &gt;  &gt;   &gt;  &gt; I&#39;ve assigned values of environment
variables (JAVA_HOME and PATH) in  &gt; accord with my java installation
(/usr/lib/jvm/java-6-sun).   &gt;  &gt; Anyway I still can&#39;t see the
pictures. After I&#39;ve selected &quot;Fetch a  &gt; random set of
image&quot;, if I&#39;ve selected a QUERY, I push &quot;Execute query&quot; 
&gt; button I see a grey empty window. &gt;  &gt; Can be a problem with my
java version (I&#39;m still using Java 6) ? Some ideas? &gt;  &gt; In the
shell where I&#39;ve launched &quot;appletview Charmer.html&quot; there are:
&gt;  &gt; $ appletviewer Charmer.html &gt; do layout &gt; after dol &gt;
RPort read as PORT REQUESTED IN GETPORT12789 &gt; 12789 &gt; PORT REQUESTED
IN GETPORT12789 &gt; The current port number is: 12789 &gt; beginning of new
CParser &gt; End of new CParser &gt; sendMessage: Trying to send:&lt;?xml
version=&quot;1.0&quot; standalone=&quot;no&quot; ?&gt; &gt; &lt;!DOCTYPE
mrml SYSTEM &quot;http://isrpc85.epfl.ch/Charmer/code/mrml.dtd&quot;&gt;
&gt; &lt;mrml session-id=&quot;dummy_session_identifier&quot;&gt; &gt;
&lt;open-session user-name=&quot;change-here-if-you-like&quot;  &gt;
session-name=&quot;charmer_default_session&quot;
/&gt;&lt;get-collections/&gt;&lt;get-algorithms/&gt; &gt; &lt;/mrml&gt; &gt;
. &gt; connect: mHost = [localhost], mPort = [12789] &gt; IF the line
&quot;Connected: ...&quot; is not &gt; printed in the next few seconds &gt;
THEN there is a security problem with your &gt; appletviewer / browser &gt;
Connected: mHost = localhost, mPort = 12789 &gt; SUCCESS &gt;
CParser::parse(charmer.CharmerConnectionMRML@1f68272 ,  &gt;
Socket[addr=localhost/127.0.0.1,port=12789,localport=40904]) called. &gt;
beginning of new CParser &gt; End of new CParser &gt; makeparser &gt; [mrml]
&gt;  &gt; [cui-time-stamp] &gt;  &gt; MOVING UP &gt;
[acknowledge-session-op] &gt;  &gt; MOVING UP &gt; [collection-list] &gt; 
&gt; [collection] &gt;  &gt; [query-paradigm-list] &gt;  &gt;
[query-paradigm] &gt;  &gt; MOVING UP &gt; [query-paradigm] &gt;  &gt;
MOVING UP &gt; MOVING UP &gt; MOVING UP &gt; MOVING UP &gt; [algorithm-list]
&gt;  &gt; [algorithm] &gt;  &gt; [algorithm] &gt;  &gt; MOVING UP &gt;
[algorithm] &gt;  &gt; MOVING UP &gt; [algorithm] &gt;  &gt; MOVING UP &gt;
[algorithm] &gt;  &gt; MOVING UP &gt; [query-paradigm-list] &gt;  &gt;
[query-paradigm] &gt;  &gt; MOVING UP &gt; MOVING UP &gt; [property-she et]
&gt;  &gt; [property-sheet] &gt;  &gt; [property-sheet] &gt;  &gt; MOVING UP
&gt; [property-sheet] &gt;  &gt; [property-sheet] &gt;  &gt; MOVING UP &gt;
[property-sheet] &gt;  &gt; MOVING UP &gt; [property-sheet] &gt;  &gt;
MOVING UP &gt; [property-sheet] &gt;  &gt; MOVING UP &gt; MOVING UP &gt;
MOVING UP &gt; MOVING UP &gt; MOVING UP &gt; MOVING UP &gt; [cui-time-stamp]
&gt;  &gt; MOVING UP &gt; MOVING UP &gt;  &gt; END &gt;  &gt; The document
root is: charmer.mrml.CXMLElement@553763 &gt; mrml &gt; cui-time-stamp &gt;
acknowledge-session-op &gt; collection-list &gt; collection &gt;
algorithm-list &gt; algorithm &gt; cui-time-stamp &gt; DIRECTLY AFTER
TRAVERSING &gt; .returning from getAlgorithms &gt; returning from
getcollections &gt; .returning from getAlgorithms &gt; returning from
getcollections &gt; subset &gt; checkbox &gt; hiding children &gt; numeric
&gt; subset &gt; checkbox &gt; showing children &gt; checkbox &gt; showing
children &gt; checkbox &gt; showing children &gt; checkbox &gt; showing
children &gt; success! &gt;  in constructor &gt;  &gt; lValue: null &gt;
lSheetType: subset &gt; visit returning: &gt; true &gt;  &gt; lValue: null
&gt; lSheetType: set-element &gt; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ &gt; visit
returning: &gt; false &gt; MRMLBuilder: &gt; do layout &gt; after dol &gt;
results are being emptied... &gt;  in constructor &gt;  &gt; lValue: null
&gt; lSheetType: subset &gt; visit returning: &gt; true &gt;  &gt; lValue:
null &gt; lSheetType: set-element &gt; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ &gt;
visit returning: &gt; false &gt; sendMessage: Trying to send:&lt;?xml
version=&quot;1.0&quot; standalone=&quot;no&quot; ?&gt; &gt; &lt;!DOCTYPE
mrml SYSTEM &quot;http://isrpc85.epfl.ch/Charmer/code/mrml.dtd&quot;&gt;
&gt; &lt;mrml session-id=&quot;9&quot;&gt; &gt; &lt;configure-session 
session-id=&quot;9&quot; &gt;&lt;algorithm 
algorithm-id=&quot;adefault&quot;   &gt; algorithm-type=&quot;adefault&quot;
 collection-id=&quot;c-26-14-11-28-0-108-1-27-0&quot;  &gt; 
&gt;&lt;/algorithm&gt;&lt;/configure-session&gt;&lt;query-step 
session-id=&quot;9&quot;  &gt; result-size=&quot;10&quot;
algorithm-id=&quot;adefault&quot;  &gt;
collection=&quot;c-26-14-11-28-0-108-1-27-0&quot;/&gt; &gt; &lt;/mrml&gt;
&gt; . &gt; connect: mHost = [localhost], mPort = [12789] &gt; IF the line
&quot;Connected: ...&quot; is not &gt; printed in the next few seconds &gt;
THEN there is a security problem with your &gt; appletviewer / browser &gt;
Connected: mHost = localhost, mPort = 12789 &gt; SUCCESS &gt;
CParser::parse(charmer.CharmerConnectionMRML@1f68272 ,  &gt;
Socket[addr=localhost/127.0.0.1,port=12789,localport=40905]) called. &gt;
beginning of new CParser &gt; End of new CParser &gt; makeparser &gt; [mrml]
&gt;  &gt; [cui-time-stamp] &gt;  &gt; MOVING UP &gt;
[acknowledge-session-op] &gt;  &gt; MOVING UP &gt; [query-result] &gt;  &gt;
[query-result-element-list] &gt;  &gt; [query-result-element] &gt;  &gt;
MOVING U P &gt; [query-result-element] &gt;  &gt; MOVING UP &gt;
[query-result-element] &gt;  &gt; MOVING UP &gt; [query-result-element] &gt;
 &gt; MOVING UP &gt; [query-result-element] &gt;  &gt; MOVING UP &gt;
[query-result-element] &gt;  &gt; MOVING UP &gt; [query-result-element] &gt;
 &gt; MOVING UP &gt; [query-result-element] &gt;  &gt; MOVING UP &gt;
[query-result-element] &gt;  &gt; MOVING UP &gt; [query-result-element] &gt;
 &gt; MOVING UP &gt; MOVING UP &gt; MOVING UP &gt; [cui-time-stamp] &gt; 
&gt; MOVING UP &gt; MOVING UP &gt;  &gt; END &gt;  &gt; The document root
is: charmer.mrml.CXMLElement@8be9ef &gt; mrml &gt; cui-time-stamp &gt;
acknowledge-session-op &gt; query-result &gt; query-result-element-list &gt;
query-result-element &gt; ADD:  &gt;
file:///var/www/pic4.pngfile:///var/www_thumbnails/pic4_thumbnail_png.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/pic6.pngfile:///var/www_thumbnails/pic6_thumbnail_png.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/pic5.pngfile:///var/www_thumbnails/pic5_thumbnail_png.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/Charmer-0.2b/icons/00exit.giffile:///var/www_thumbnails/Charmer-0.2b/icons/00exit_thumbnail_gif.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/Charmer-0.2b/icons/charmer.giffile:///var/www_thumbnails/Charmer-0.2b/icons/charmer_thumbnail_gif.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/Charmer-0.2b/icons/question.giffile:///var/www_thumbnails/Charmer-0.2b/icons/question_thumbnail_gif.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/apache2-default/apache_pb22.pngfile:///var/www_thumbnails/apache2-default/apache_pb22_thumbnail_png.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/apache2-default/apache_pb.pngfile:///var/www_thumbnails/apache2-default/apache_pb_thumbnail_png.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/apache2-default/apache_pb22_ani.giffile:///var/www_thumbnails/apache2-default/apache_pb22_ani_thumbnail_gif.jpg
&gt; query-result-element &gt; ADD:  &gt;
file:///var/www/apache2-default/apache_pb22.giffile:///var/www_thumbnails/apache2-default/apache_pb22_thumbnail_gif.jpg
&gt; cui-time-stamp &gt; DIRECTLY AFTER TRAVERSING &gt; querying &gt; 1 &gt;
2 &gt; 3 &gt; 4 &gt; 5 &gt; 6 &gt; 6 &gt; 6 &gt; calling send almost &gt;
lQUERY SIZE 10 &gt; RESULT SIZE 10 &gt; sendMessage: Trying to send:&lt;?xml
version=&quot;1.0&quot; standalone=&quot;no&quot; ?&gt; &gt; &lt;!DOCTYPE
mrml SYSTEM &quot;http://isrpc85.epfl.ch/Charmer/code/mrml.dtd&quot;&gt;
&gt; &lt;mrml session-id=&quot;9&quot;&gt; &gt; &lt;query-step
session-id=&quot;9&quot; &gt;  result-size=&quot;10&quot; &gt; 
result-cutoff=&quot;0.0&quot; &gt; 
collection-id=&quot;c-26-14-11-28-0-108-1-27-0&quot; &gt; 
algorithm-id=&quot;adefault&quot;&gt; &gt;
&lt;mpeg-7-qbe&gt;&lt;/mpeg-7-qbe&gt;&lt;user-relevance-element-list&gt;&lt;user-relevance-element
 &gt;
image-location=&quot;file:/var/www/apache2-default/apache_pb22.png&quot; 
&gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/apache2-default/apache_pb22_ani.gif&quot;
 &gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt;
&gt; &lt;user-relevance-element
image-location=&quot;file:/var/www/pic6.png&quot;  &gt;
thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element image-location=&quot;file:/var/www/pic5.png&quot;
 &gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt;
&gt; &lt;user-relevance-element
image-location=&quot;file:/var/www/pic4.png&quot;  &gt;
thumbnail-location=&quot;&quot;  user-relevance=&quot;1&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/apache2-default/apache_pb.png &quot; 
&gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/Charmer-0.2b/icons/00exit.gif&quot;  &gt;
thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/Charmer-0.2b/icons/question.gif&quot; 
&gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/apache2-default/apache_pb22.gif&quot; 
&gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;user-relevance-element  &gt;
image-location=&quot;file:/var/www/Charmer-0.2b/icons/charmer.gif&quot; 
&gt; thumbnail-location=&quot;&quot;  user-relevance=&quot;0&quot;/&gt; &gt;
&lt;/user-relevance-element-list&gt;&lt;/query-step&gt; &gt; &lt;/mrml&gt;
&gt; . &gt; connect: mHost = [localhost], mPort = [12789] &gt; IF the line
&quot;Connected: ...&quot; is not &gt; printed in th e next few seconds &gt;
THEN there is a security problem with your &gt; appletviewer / browser &gt;
Connected: mHost = localhost, mPort = 12789 &gt; SUCCESS &gt;
CParser::parse(charmer.CharmerConnectionMRML@1f68272 ,  &gt;
Socket[addr=localhost/127.0.0.1,port=12789,localport=40906]) called. &gt;
beginning of new CParser &gt; End of new CParser &gt; makeparser &gt; [mrml]
&gt;  &gt; [cui-time-stamp] &gt;  &gt; MOVING UP &gt; [query-result] &gt; 
&gt; [query-result-element-list] &gt;  &gt; MOVING UP &gt; MOVING UP &gt;
[cui-time-stamp] &gt;  &gt; MOVING UP &gt; MOVING UP &gt;  &gt; END &gt; 
&gt; The document root is: charmer.mrml.CXMLElement@1465ca2 &gt; mrml &gt;
cui-time-stamp &gt; query-result &gt; query-result-element-list &gt;
cui-time-stamp &gt; DIRECTLY AFTER TRAVERSING &gt; results are being
emptied... &gt;  &gt; What can I do? &gt;  &gt;   &gt;  &gt;  &gt;Dear
Maurizio, &gt;  &gt;please include the list in all mails on this. Otherwise
I wi ll not &gt;  &gt;respond anymore. It is important to keep this trace
for other people who &gt;  &gt;have the same problem. &gt;  &gt;  &gt;The
Charmer interface is very old and the problem of not showing images &gt; 
&gt;in the interface is well documented in older posting on this list. You
&gt;  &gt;can either look at the old postings to find the solution or use
one of &gt;  &gt;the newer interfaces that exist in php. I think that the
download &gt;  &gt;locations are linked from the gift pages. &gt;  &gt; 
&gt;Cheers, Henning &gt;  &gt;  &gt;&gt;[email protected]  &gt;
&lt;newmsg.php?us=bWF1cml6aW8ucGlsaUBlbWFpbC5pdA==&amp;sid=%7B927400867479DEA0D4F2FC-479DEA0D4FACA-1201531405%7D&amp;[email protected]&gt;
 &gt; wrote: &gt;  &gt;&gt; Hello... &gt;  &gt;&gt; After I connected to the
gift server, I can&#39;t see any pictures in the &gt;  &gt;&gt; charmer
frame. I attach a applet screenshot! &gt;  &gt;&gt;What can I do? &gt; 
&gt;&gt; &gt;  &gt; &gt;Maurizio &gt;  &gt;&gt; &gt;  &gt;&gt;&gt; &gt; 
&gt;&gt;&gt; Please run the server and try out the interface. It should
work. The &gt;  &gt;&gt;&gt; error has been in gift for a while. Please
always add the list to your &gt;  &gt;&gt;&gt; mails! &gt;  &gt;&gt;&gt; The
same error was already mentioned before and the system worked. &gt; 
&gt;&gt;&gt; &gt;  &gt;&gt;&gt; Cheers, Henning &gt;  &gt;&gt;&gt; &gt; 
&gt;&gt;&gt; [email protected] &gt;
&lt;newmsg.php?us=bWF1cml6aW8ucGlsaUBlbWFpbC5pdA==&amp;sid=%7B927400867479DEA0D4F2FC-479DEA0D4FACA-1201531405%7D&amp;[email protected]&gt;
 &gt; a &eacute;crit : &gt;  &gt;&gt;&gt;&gt; Sorry, &gt;  &gt;&gt;&gt;&gt;
I&#39;ve another problem. When I give &gt;  &gt;&gt;&gt;&gt; &gt; 
&gt;&gt;&gt;&gt; sudo gift-add-collection.pl /home/testgift &gt; 
&gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt; I&#39;ve, after many rows (Writing
Chunk etc...): &gt;  &gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt; NEW WRITING A
DI **************************************** &gt;  &gt;&gt;&gt;&gt; NEW ADI
WRITTEN **************************************** &gt;  &gt;&gt;&gt;&gt; &gt;
 &gt;&gt;&gt;&gt; BEFORE checking inverted file consistencyAFTER checking
inverted file &gt;  &gt;&gt;&gt;&gt; consistency &gt;  &gt;&gt;&gt;&gt; The
check was successful &gt;  &gt;&gt;&gt;&gt; ERROR in generating inverted
fileCAcIFFileSystem::~CAcIFFileSystem() &gt;  &gt; &gt;called &gt; 
&gt;&gt;&gt;&gt; CAccessor.cccalling destructor &gt;  &gt;&gt;&gt;&gt;
CAccessor.cccalling destructor &gt;  &gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt;
PROGRESS: 99% &gt;  &gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt; Copying
/home/maury/gift-config.mrml to  &gt; /home/maury/gift-config.mrml-old &gt; 
&gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt; PROGRESS: 100% &gt; 
&gt;&gt;&gt;&gt; &gt;  &gt;&gt;&gt;&gt; What can I do? &gt; 
&gt;&gt;&gt;&gt; Maurizio &gt;  &gt;&gt;&gt;&gt; &gt;  &gt;  &gt; ---- &gt;
Email.it, the professional e-mail, gratis per te: clicca qui  &gt;
&lt;http://www.email.it/cgi-bin/start?sid=3&gt; &gt;  &gt; Sponsor: &gt;
Penne USB Transced ad 1&amp;euro;, HD 160Gb Sata a 29,90&amp;euro;. Offerte
Sottocosto e  &gt; Lastminute imperdibili tutte le settimane. Registrati
alla Newsletter e  &gt; sarai sempre informato! &gt; Clicca qui
&lt;http://adv.email.it/cgi-bin/foclick.cgi?mid=7496&amp;d=20080128&gt; &gt;
 &gt;  &gt;
------------------------------------------------------------------------
&gt;  &gt; _______________________________________________ &gt; help-GIFT
mailing list &gt; [email protected] &gt;
http://lists.gnu.org/mailman/listinfo/help-gift  --   
---------------------------------------   Henning M&uuml;ller (PhD)  
University &amp; Hospitals of Geneva   Service of Medical Informatics   24,
rue Micheli-du-Crest   CH-1211 Geneva 14, Switzerland   Tel  +41 22 372-6175
  Fax  +41 22 372-8680   email [email protected] 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Saldi On-line!!! Lo Sportwear più bello è su www.grandinettisport.com 

 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7506&d=20080128

_______________________________________________
help-GIFT mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gift