<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5809" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-10-11T13:45:56-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5809</id>

		<entry>
		<author><name><![CDATA[Spirit]]></name></author>
		<updated>2003-10-11T13:45:56-04:00</updated>

		<published>2003-10-11T13:45:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28286#p28286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28286#p28286"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28286#p28286"><![CDATA[
Thx alot egghead!!<br>I didnt know, where to find that tcl. I used tho old code from Papillon and now it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised">)<br><br>Thx all for your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3972">Spirit</a> — Sat Oct 11, 2003 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-10-11T13:18:23-04:00</updated>

		<published>2003-10-11T13:18:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28284#p28284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28284#p28284"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28284#p28284"><![CDATA[
Papillon gave the code snippet, so he may want to answer the question. But likely you need to use http.tcl that ships with tcl (directory http2.4).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Oct 11, 2003 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spirit]]></name></author>
		<updated>2003-10-11T13:15:35-04:00</updated>

		<published>2003-10-11T13:15:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28283#p28283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28283#p28283"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28283#p28283"><![CDATA[
Ok now i get a little further (by using the egghttp.tcl), and there is always this message:<div class="codebox"><p>Code: </p><pre><code>net: connect! sock 6net: eof!(read) socket 6</code></pre></div>by using this code:<div class="codebox"><p>Code: </p><pre><code>proc pub_!bsd {nick uhost hand chan rest} { set sock [egghttp:geturl http://www.website.com/ircquery.php?pass=secret&amp;select=search&amp;param=B get_results]}bind pub - !bsd pub_!bsdproc get_results {sock} {   set buffer [egghttp:data $sock]   egghttp:cleanup $sock   putlog $buffer}</code></pre></div>I used the example at the end of the script and made sure, that there are any results<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3972">Spirit</a> — Sat Oct 11, 2003 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-10-11T11:18:52-04:00</updated>

		<published>2003-10-11T11:18:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28280#p28280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28280#p28280"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28280#p28280"><![CDATA[
i dont work that much with http scripts, but try using the egghttp:geturl proc instead<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Oct 11, 2003 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spirit]]></name></author>
		<updated>2003-10-11T11:02:15-04:00</updated>

		<published>2003-10-11T11:02:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28279#p28279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28279#p28279"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28279#p28279"><![CDATA[
Yep ..egghttp.tcl is loaded, but after your post <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>Didn't know i need that script *sorry*<br><br>Now there is a error:<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub_!getresult]: invalid command name "::http::geturl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3972">Spirit</a> — Sat Oct 11, 2003 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-10-11T10:49:59-04:00</updated>

		<published>2003-10-11T10:49:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28278#p28278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28278#p28278"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28278#p28278"><![CDATA[
is there an error on the partyline ?<br>and : have you loaded egghttp.tcl ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Oct 11, 2003 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spirit]]></name></author>
		<updated>2003-10-11T09:15:00-04:00</updated>

		<published>2003-10-11T09:15:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28265#p28265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28265#p28265"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28265#p28265"><![CDATA[
Thx Papillon!<br><br>Unfortuantely i am not getting any results back. Just for the testing i am posting the results in a dummychan right away.<div class="codebox"><p>Code: </p><pre><code>proc pub_!getresult {nick uhost hand chan rest} {  set result [::http::data [set tok [::http::geturl http://www.website.com/ircquery.php?pass=secret&amp;select=search&amp;param=B]]] putchan $chan $result ::http::cleanup $tok}bind pub - !getresult pub_!getresult</code></pre></div>The bot is posting, when i fill $result by hand and i get results when i enter the URL in the IE<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3972">Spirit</a> — Sat Oct 11, 2003 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-10-11T08:33:42-04:00</updated>

		<published>2003-10-11T08:33:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28258#p28258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28258#p28258"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28258#p28258"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set result [::http::data [set tok [::http::geturl http://www.website.com/ircquery.php?pass=secret&amp;select=search&amp;param=B]]]::http::cleanup $tok#$result conatins the results</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Oct 11, 2003 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spirit]]></name></author>
		<updated>2003-10-11T06:06:45-04:00</updated>

		<published>2003-10-11T06:06:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28248#p28248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28248#p28248"/>
		<title type="html"><![CDATA[&quot;Reading&quot; a PHP-Query]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28248#p28248"><![CDATA[
Hi @ll!<br><br>I got a php-site, which searches a mysql-db and sends me the results as simple text back.<br>Is it possible to connect with the eggdrop to the page, get the results and post them into a channel?<br><br>The URL looks like this: <em class="text-italics"><a href="http://www.website.com/ircquery.php?pass=secret&amp;select=search&amp;param=B" class="postlink">http://www.website.com/ircquery.php?pas ... ch&amp;param=B</a></em><br><br>And the results are looking like this:<br><em class="text-italics">Bad Boy<br>Bomber<br>...</em><br><br>It makes a "B*" search in the database.<em class="text-italics"></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3972">Spirit</a> — Sat Oct 11, 2003 6:06 am</p><hr />
]]></content>
	</entry>
	</feed>
