<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Dear Curtis:</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br class="webkit-block-placeholder"></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I thank you so much for the inputs. Actually, I was able to read in the images using PHP. First, I tried to execute the command line interface available in OME (curl) using 'shell_exec()', 'system()' and 'exec()' system calls available in PHP. I also tried 'wget'. Unfortunately none of them worked. There is a curl library for PHP. I didn't try that out. But, the 'http' interface in OME was helpful. I now directly point to my image source through the 'http' directive which creates the image and
 displays it on the browser. I am still not sure how one can save the images to the system (using PHP script) to retrieve it back (either to the browser or as a file).</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br class="webkit-block-placeholder"></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Thanks.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Kasthuri.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br class="webkit-block-placeholder"></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">P.S: In retrospect, I think the ./OMEIS executable should be helpful for creating and saving the image file through PHP - need to try that out...<br><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt">----- Original Message ----<br>From: Curtis
 Rueden <ctrueden@wisc.edu><br>To: Kasthuri Srinivasan Kannan <kasthurisrinivasan@yahoo.com><br>Cc: ome-users@lists.openmicroscopy.org.uk<br>Sent: Friday, February 22, 2008 10:01:54 AM<br>Subject: Re: [ome-users] Connecting to the image server through PHP.<br><br> Hi Kasthuri,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex;"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;">Can anyone help me by letting me know how one can connect to the OME Image Server (OMEIS) through PHP? I am trying to write a script that can pull an image from OMEIS and display it on the browser. I tired reading the image server documentation but couldn't exactly locate the information on how this could be
 done.<br></div></div></div></blockquote></div><br>If your PHP code is being served from the same machine as the OME installation, you might be able to get away with a PHP-Perl communication layer of some kind (e.g., <a rel="nofollow" target="_blank" href="http://devzone.zend.com/node/view/id/1712">http://devzone.zend.com/node/view/id/1712</a>).<br> <br>Otherwise, the OME server remoting infrastructure uses XML-RPC to communicate. You could use an XML-RPC library for PHP -- googling for "php xml-rpc" I immediately found <a rel="nofollow" target="_blank" href="http://phpxmlrpc.sourceforge.net/">http://phpxmlrpc.sourceforge.net/</a> as well as <a rel="nofollow" target="_blank" href="http://us3.php.net/xmlrpc">http://us3.php.net/xmlrpc</a>, which indicates that perhaps newer versions of PHP have some built-in XML-RPC capability.<br> <br>There is a client layer called OME-Java that demonstrates this connectivity for Java, but unfortunately no one to my
 knowledge has coded such a thing in PHP.<br><br>There has also been some discussion on the ome-devel mailing list about XML-RPC (<a rel="nofollow" target="_blank" href="http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2004-July/000049.html">http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2004-July/000049.html</a>, <a rel="nofollow" target="_blank" href="http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2005-October/000543.html">http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2005-October/000543.html</a>).<br> <br>-Curtis<br><br><div class="gmail_quote">On Wed, Feb 20, 2008 at 2:49 PM, Kasthuri Srinivasan Kannan <<a rel="nofollow" ymailto="mailto:kasthurisrinivasan@yahoo.com" target="_blank" href="mailto:kasthurisrinivasan@yahoo.com">kasthurisrinivasan@yahoo.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex;"> <div><div
 style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">Hi,<br><br>Can anyone help me by letting me know how one can connect to the OME Image Server (OMEIS) through PHP? I am trying to write a script that can pull an image from OMEIS and display it on the browser. I tired reading the image server documentation but couldn't exactly locate the information on how this could be done.<br> <br>Thanks.<br><font color="#888888">Kasthuri Kannan.<br></font></div></div><div class="WgoR0d"><br>       <hr size="1">Be a better friend, newshound, and  know-it-all with Yahoo! Mobile. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ"> Try it now.</a></div></div> <br>_______________________________________________<br> ome-users mailing list<br> <a rel="nofollow"
 ymailto="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank" href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br> <a rel="nofollow" target="_blank" href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br> <br></blockquote></div><br> </div><br></div><div style="position:fixed"></div></div><br>
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>