helo<br>
<br>
i m not concerned with readin input frm a form actually. wat i dnt
understand in that example is that, nowhere are they "connectin" to a
database. i mean no commands fr connectin to the quartz DB( like we
have mysql_connect () to connect to a mysql DB). Is it because quartz
is not a proper kinda DB? Anyways does the absence of such a connecting
statement mean that there is no need to explicitly connect to the
quartz DB thru the server? and does it mean i cant just tweak the code
a bit( for collectin data frm form input fields) n use it fr
searchin(simplesearch.php) right away?<br>
<br>
thanks.<br><br><div><span class="gmail_quote">On 3/7/06, <b class="gmail_sendername">Olly Betts</b> <<a href="mailto:olly@survex.com">olly@survex.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Mar 07, 2006 at 06:19:53PM +0530, durga bidaye wrote:<br>> I m a newbie here . i have used xapian with c++. now i wanna use php. i<br>> installed the bindings and went thru the docs. the examples given are<br>
> command line ones. i wanna create an application where search string is<br>> taken thru a form, from a user. i wud like a example of a pgm which runs<br>> in the browser( not on the command line).<br><br>We don't currently have such an example, but reading input from a form
<br>in PHP isn't at all Xapian specific and you can find thousands of<br>examples of how to do it on the web, e.g.:<br><br><a href="http://www.google.com/search?q=php+form+input">http://www.google.com/search?q=php+form+input
</a><br><br>> n another doubt i have is whether all the classes that were<br>> available fr C++ are of no use to php? or only a few classes had to be<br>> modified fr bindings pakage? rest of them are available fr use by php? if
<br>> not then where is the description fr classes used in bindings?<br><br>Did you read the PHP bindings documentation? See<br>php/docs/bindings.html in xapian-bindings.<br><br>Pretty much all classes and methods are wrapped in PHP. SWIG doesn't
<br>currently allow you to make a PHP subclass of a wrapped C++ class and<br>pass it into C++, without which a couple of classes (e.g. MatchDecider)<br>are pointless so not wrapped. And we don't currently wrap the<br>Xapian::Error classes (because PHP4 doesn't support exceptions).
<br><br>And sometimes a new class/method doesn't get wrapped right away, though<br>I try to keep everything in step. Generally Java and Perl lag more<br>because it requires more work to add a wrapper for those.<br><br>If you find a class or method which isn't wrapped and there's not
<br>documented reason, report it and we'll fix the situation.<br><br>Cheers,<br> Olly<br></blockquote></div><br>