<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Help a developer debug a PHP class for using the PhishTank API</title>
	<link>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/</link>
	<description>A blog about and from PhishTank, a collaborative clearinghouse for data about phishing.</description>
	<pubDate>Thu, 21 Aug 2008 06:44:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Luskaner</title>
		<link>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-4787</link>
		<pubDate>Thu, 08 Feb 2007 17:46:32 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-4787</guid>
					<description>What should i put in '$api_key'? cause i put others ($username, $app_key, $shared_secret) in account details with registering a new application</description>
		<content:encoded><![CDATA[<p>What should i put in &#8216;$api_key&#8217;? cause i put others ($username, $app_key, $shared_secret) in account details with registering a new application
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Hall</title>
		<link>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-787</link>
		<pubDate>Mon, 25 Dec 2006 04:36:36 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-787</guid>
					<description>On the api page, the example code is missing a sort($parameters); call that can be found in both the classes above.  I thought I could save some people some time by pointing this out.  (The first class uses asort, which works, but sort is better, which is used by the second class listed here).</description>
		<content:encoded><![CDATA[<p>On the api page, the example code is missing a sort($parameters); call that can be found in both the classes above.  I thought I could save some people some time by pointing this out.  (The first class uses asort, which works, but sort is better, which is used by the second class listed here).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nitish Padgaonkar</title>
		<link>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-209</link>
		<pubDate>Sat, 11 Nov 2006 06:35:08 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-209</guid>
					<description>Hi,

I too was writing a PHP class for PEAR implementing the PhishTank API, but had some problems with implementing check.email. It's not 100% finished, but I suppose I can post what I've done so far. It's PHP 5+ compliant and aims to be as standards abiding as possible with regard to the new PEAR standards due to be in effect by January 2007.

The link is posted below:
http://team254.bcp.org/Services/PhishTank.php.txt</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I too was writing a PHP class for PEAR implementing the PhishTank API, but had some problems with implementing check.email. It&#8217;s not 100% finished, but I suppose I can post what I&#8217;ve done so far. It&#8217;s PHP 5+ compliant and aims to be as standards abiding as possible with regard to the new PEAR standards due to be in effect by January 2007.</p>
<p>The link is posted below:<br />
<a href='http://team254.bcp.org/Services/PhishTank.php.txt' rel='nofollow'>http://team254.bcp.org/Services/PhishTank.php.txt</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Branco</title>
		<link>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-203</link>
		<pubDate>Fri, 10 Nov 2006 00:42:38 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/11/10/help-a-developer-debug-a-php-class-for-using-the-phishtank-api/#comment-203</guid>
					<description>Wow, Thanks John Roberts for the post. I'd just like to say that the code I used to debug/test this Class can be found below. (For use once first_run() has been completed) Note: This class was made to be usable in PHP 4 as well as PHP5. Any feedback whether you LOVE my work or even HATE it, with reasons why, will be greatly appreciated.

PHP Used:
start_session();

echo 'Time: '.$tanker-&#62;response_meta['timestamp'].'';
echo 'Token: '.$tanker-&#62;token.'';
echo 'API Key: '.$tanker-&#62;api_key.'';
echo 'Frob: '.$tanker-&#62;frob.'';
($tanker-&#62;session_active) ? $active = 'Yes' : $active = 'No';
echo 'Session Active: '.$active.'';

echo '';

if(!$tanker-&#62;misc_ping())
	echo $tanker-&#62;error.'';
else
	echo 'Pong: '.$tanker-&#62;response['pong'].'';

echo '';

if(!$tanker-&#62;check_url('http://phishtank.com'))
	echo $tanker-&#62;error.'';
else
	echo 'Check Url:  '.print_r($tanker-&#62;response['url0']).'';

echo '';

$tanker-&#62;end_session();
($tanker-&#62;session_active) ? $active = 'Yes' : $active = 'No';
echo 'Session Active: '.$active.'';
?&#62;</description>
		<content:encoded><![CDATA[<p>Wow, Thanks John Roberts for the post. I&#8217;d just like to say that the code I used to debug/test this Class can be found below. (For use once first_run() has been completed) Note: This class was made to be usable in PHP 4 as well as PHP5. Any feedback whether you LOVE my work or even HATE it, with reasons why, will be greatly appreciated.</p>
<p>PHP Used:<br />
start_session();</p>
<p>echo &#8216;Time: &#8216;.$tanker-&gt;response_meta[&#8217;timestamp&#8217;].'&#8217;;<br />
echo &#8216;Token: &#8216;.$tanker-&gt;token.'&#8217;;<br />
echo &#8216;API Key: &#8216;.$tanker-&gt;api_key.'&#8217;;<br />
echo &#8216;Frob: &#8216;.$tanker-&gt;frob.'&#8217;;<br />
($tanker-&gt;session_active) ? $active = &#8216;Yes&#8217; : $active = &#8216;No&#8217;;<br />
echo &#8216;Session Active: &#8216;.$active.'&#8217;;</p>
<p>echo &#8216;&#8217;;</p>
<p>if(!$tanker-&gt;misc_ping())<br />
	echo $tanker-&gt;error.'&#8217;;<br />
else<br />
	echo &#8216;Pong: &#8216;.$tanker-&gt;response[&#8217;pong&#8217;].'&#8217;;</p>
<p>echo &#8216;&#8217;;</p>
<p>if(!$tanker-&gt;check_url(&#8217;http://phishtank.com&#8217;))<br />
	echo $tanker-&gt;error.'&#8217;;<br />
else<br />
	echo &#8216;Check Url:  &#8216;.print_r($tanker-&gt;response[&#8217;url0&#8242;]).'&#8217;;</p>
<p>echo &#8216;&#8217;;</p>
<p>$tanker-&gt;end_session();<br />
($tanker-&gt;session_active) ? $active = &#8216;Yes&#8217; : $active = &#8216;No&#8217;;<br />
echo &#8216;Session Active: &#8216;.$active.'&#8217;;<br />
?&gt;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
