<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: phpGSB &#8211; PHP Google Safe Browsing</title>
	<atom:link href="http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/feed/" rel="self" type="application/rss+xml" />
	<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/</link>
	<description>Web Developer Extraordinaire!</description>
	<lastBuildDate>Thu, 29 Mar 2012 21:41:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-20304</generator>
	<item>
		<title>By: hadi</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-496</link>
		<dc:creator>hadi</dc:creator>
		<pubDate>Thu, 11 Aug 2011 23:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-496</guid>
		<description>Hi,

I get this error when I try to execute listupdater.php


phpGSB Loaded...
Connected successfully to database server...
Connected to database successfully...

Warning: file_get_contents(nextcheck.dat) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Users\acer\Desktop\xampp\htdocs\New Folder\phpgsb.class.php on line 175
Allowed to request...
Using googpub-phish-shavar; goog-malware-shavar; ...
Begin MySQL Transaction...

Fatal error: Call to undefined function curl_init() in C:\Users\acer\Desktop\xampp\htdocs\New Folder\phpgsb.class.php on line 188

Any idea? Thanks in advance. :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I get this error when I try to execute listupdater.php</p>
<p>phpGSB Loaded&#8230;<br />
Connected successfully to database server&#8230;<br />
Connected to database successfully&#8230;</p>
<p>Warning: file_get_contents(nextcheck.dat) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Users\acer\Desktop\xampp\htdocs\New Folder\phpgsb.class.php on line 175<br />
Allowed to request&#8230;<br />
Using googpub-phish-shavar; goog-malware-shavar; &#8230;<br />
Begin MySQL Transaction&#8230;</p>
<p>Fatal error: Call to undefined function curl_init() in C:\Users\acer\Desktop\xampp\htdocs\New Folder\phpgsb.class.php on line 188</p>
<p>Any idea? Thanks in advance. <img src='http://beaver6813.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beaver6813</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-162</link>
		<dc:creator>Beaver6813</dc:creator>
		<pubDate>Tue, 14 Dec 2010 18:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-162</guid>
		<description>Sorry, was doing some debugging on it the other night and left some code in there, should be working now. 
I&#039;ve replied to your issue on google code.</description>
		<content:encoded><![CDATA[<p>Sorry, was doing some debugging on it the other night and left some code in there, should be working now.<br />
I&#8217;ve replied to your issue on google code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Brown</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-161</link>
		<dc:creator>Robert Brown</dc:creator>
		<pubDate>Mon, 13 Dec 2010 19:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-161</guid>
		<description>FWIW, your URL checker posted in comment #4 is not working. After every submit it just returns &quot;GOT THIS FAR&quot;.

I also posted on the Google Code issue queue as the v1.2 software seems to return FALSE (not malicious) for each URL.</description>
		<content:encoded><![CDATA[<p>FWIW, your URL checker posted in comment #4 is not working. After every submit it just returns &#8220;GOT THIS FAR&#8221;.</p>
<p>I also posted on the Google Code issue queue as the v1.2 software seems to return FALSE (not malicious) for each URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Bottagisio</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-160</link>
		<dc:creator>Nicolas Bottagisio</dc:creator>
		<pubDate>Fri, 03 Dec 2010 01:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-160</guid>
		<description>ok, thanks for your help.</description>
		<content:encoded><![CDATA[<p>ok, thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beaver6813</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-159</link>
		<dc:creator>Beaver6813</dc:creator>
		<pubDate>Fri, 03 Dec 2010 00:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-159</guid>
		<description>What you replaced it with isn&#039;t really correct as now it is saying:
If the http code is 204 but there was content then return everything okay.
Where as it should be saying:
If the http code is 204 and and there wasn&#039;t body then return everything okay.

It may work in your implementation for now; however I&#039;ll have to do some further testing to get this correctly fixed. I&#039;ll update you soon when I get a full update done :)</description>
		<content:encoded><![CDATA[<p>What you replaced it with isn&#8217;t really correct as now it is saying:<br />
If the http code is 204 but there was content then return everything okay.<br />
Where as it should be saying:<br />
If the http code is 204 and and there wasn&#8217;t body then return everything okay.</p>
<p>It may work in your implementation for now; however I&#8217;ll have to do some further testing to get this correctly fixed. I&#8217;ll update you soon when I get a full update done <img src='http://beaver6813.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Bottagisio</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-158</link>
		<dc:creator>Nicolas Bottagisio</dc:creator>
		<pubDate>Fri, 03 Dec 2010 00:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-158</guid>
		<description>Replacing the line by 

elseif($result[0][&#039;http_code&#039;]==204&amp;&amp;strlen($result[1])&lt;=0)

didn&#039;t work.

So I rather replaced the line by

elseif($result[0][&#039;http_code&#039;]==204&amp;&amp;$result[1])

and it works fine :-)</description>
		<content:encoded><![CDATA[<p>Replacing the line by </p>
<p>elseif($result[0]['http_code']==204&amp;&amp;strlen($result[1])&lt;=0)</p>
<p>didn&#039;t work.</p>
<p>So I rather replaced the line by</p>
<p>elseif($result[0][&#039;http_code&#039;]==204&amp;&amp;$result[1])</p>
<p>and it works fine <img src='http://beaver6813.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beaver6813</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-157</link>
		<dc:creator>Beaver6813</dc:creator>
		<pubDate>Thu, 02 Dec 2010 23:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-157</guid>
		<description>Okay, finally..
Find: 
elseif($result[0][&#039;http_code&#039;]==204&amp;&amp;empty($result[1]))

Replace:
elseif($result[0][&#039;http_code&#039;]==204&amp;&amp;strlen($result[1])&lt;=0)

This should fix the problem, the response from GSB isn&#039;t returning any data which is fine with a 204 response. Not sure why its returning bool(true) but I&#039;ll add this as an issue to look into.</description>
		<content:encoded><![CDATA[<p>Okay, finally..<br />
Find:<br />
elseif($result[0]['http_code']==204&#038;&#038;empty($result[1]))</p>
<p>Replace:<br />
elseif($result[0]['http_code']==204&#038;&#038;strlen($result[1])<=0)</p>
<p>This should fix the problem, the response from GSB isn&#8217;t returning any data which is fine with a 204 response. Not sure why its returning bool(true) but I&#8217;ll add this as an issue to look into.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Bottagisio</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-156</link>
		<dc:creator>Nicolas Bottagisio</dc:creator>
		<pubDate>Thu, 02 Dec 2010 11:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-156</guid>
		<description>I get:

bool(true) ERROR: Invalid response returned from GSB (204)...</description>
		<content:encoded><![CDATA[<p>I get:</p>
<p>bool(true) ERROR: Invalid response returned from GSB (204)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beaver6813</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-155</link>
		<dc:creator>Beaver6813</dc:creator>
		<pubDate>Thu, 02 Dec 2010 10:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-155</guid>
		<description>Hi Nicolas,
Okay so its definately returning a 204 response header, can you now try:
Find: $this-&gt;fatalerror(“ERROR: Invalid response returned from GSB ({$result[0][&#039;http_code&#039;]})”);

Replace: var_dump($result[1]);
$this-&gt;fatalerror(“ERROR: Invalid response returned from GSB ({$result[0][&#039;http_code&#039;]})”);

The reason why its throwing the error is because $result[1] isn&#039;t empty, when it should be with a 204 response. So if you could let me know what it outputs with the above code that&#039;d be great. (So we can see what $result[1] contains.)</description>
		<content:encoded><![CDATA[<p>Hi Nicolas,<br />
Okay so its definately returning a 204 response header, can you now try:<br />
Find: $this->fatalerror(“ERROR: Invalid response returned from GSB ({$result[0]['http_code']})”);</p>
<p>Replace: var_dump($result[1]);<br />
$this->fatalerror(“ERROR: Invalid response returned from GSB ({$result[0]['http_code']})”);</p>
<p>The reason why its throwing the error is because $result[1] isn&#8217;t empty, when it should be with a 204 response. So if you could let me know what it outputs with the above code that&#8217;d be great. (So we can see what $result[1] contains.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Bottagisio</title>
		<link>http://beaver6813.com/2010/06/phpgsb-php-google-safe-browsing/comment-page-1/#comment-154</link>
		<dc:creator>Nicolas Bottagisio</dc:creator>
		<pubDate>Thu, 02 Dec 2010 08:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://beaver6813.com/?p=231#comment-154</guid>
		<description>sorry for answering so late.

I modified the script as asked and I get:

int(204)
ERROR: Invalid response returned from GSB (204)...</description>
		<content:encoded><![CDATA[<p>sorry for answering so late.</p>
<p>I modified the script as asked and I get:</p>
<p>int(204)<br />
ERROR: Invalid response returned from GSB (204)&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

