<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023060" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023060</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1142068</link>
    <description> &lt;p&gt;Thanks everyone.&lt;/p&gt;
&lt;p&gt;Mark, I implemented your solution and it works like a charm, Thanks a bunch!!&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 Dec 2003 11:07:14 +0000</pubDate>
 <dc:creator>shanda</dc:creator>
 <guid isPermaLink="false">comment 1142068 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1142057</link>
    <description> &lt;p&gt;Well, it&#039;ll need to be a bit more than 2 lines.  What I had in mind is a script with access to the database.  You would pull up a hidden file on the remote server which would perform your query work, then print out the number of results.&lt;/p&gt;
&lt;p&gt;on remote server:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;REMOTE_ADDR&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]!=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gethostbyname&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;your_server.com&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;quit hacking, scum!&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbi &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;host&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;user&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;pass&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_select_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;database&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;SELECT COUNT(id) AS num_results FROM table_name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;serialize&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;on your server:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$remote &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;unserialize&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_get_contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;http://example.com/super/secret/file.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$remote&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;num_results&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 Dec 2003 06:51:05 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1142057 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1141998</link>
    <description> &lt;p&gt;To avoid the parsing, initally, I will ask that they consider putting the script on their machine.  I will have to assume that since this site will be sending major traffic to each member (based on the number of results returned), that they will allow a simple one or two line php script to be put on their server.&lt;/p&gt;
&lt;p&gt;It will have to be simple though.&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Dec 2003 11:10:32 +0000</pubDate>
 <dc:creator>shanda</dc:creator>
 <guid isPermaLink="false">comment 1141998 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1141995</link>
    <description> &lt;p&gt;Do you have access to these site?  I ask because the solution with the best performace would require that you can stick a file on their server.&lt;/p&gt;
&lt;p&gt;Else, you&#039;ll likely be parsing html source for information.  Even if the source doesn&#039;t say &quot;X results found&quot;, you can pattern match and count the number of results displayed.&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Dec 2003 07:07:41 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1141995 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1141987</link>
    <description> &lt;p&gt;so, the google thing was only an example.  I&#039;ll be querying personal smaller sites.&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Dec 2003 03:01:26 +0000</pubDate>
 <dc:creator>shanda</dc:creator>
 <guid isPermaLink="false">comment 1141987 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/counting-number-search-results-external-site#comment-1141986</link>
    <description> &lt;p&gt;Google, and likely other engine, forbid the use of automated queries to their site.  Google does have an API you can use in combination with a license (I believe its free for a limited number of queries per day or month) to perform queries on their database.&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Dec 2003 01:50:48 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1141986 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
