<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daily Relevance &#187; php</title>
	<atom:link href="http://www.dailyrelevance.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dailyrelevance.com</link>
	<description>All things relevant and interesting</description>
	<lastBuildDate>Thu, 15 Dec 2011 15:19:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zend Soap Client errors</title>
		<link>http://www.dailyrelevance.com/php/zend-soap-client-errors</link>
		<comments>http://www.dailyrelevance.com/php/zend-soap-client-errors#comments</comments>
		<pubDate>Tue, 26 Jan 2010 20:25:46 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php soap]]></category>
		<category><![CDATA[soap api]]></category>
		<category><![CDATA[zend soap api]]></category>

		<guid isPermaLink="false">http://www.dailyrelevance.com/?p=201</guid>
		<description><![CDATA[For those of you getting this error Uncaught SoapFault exception: [SOAP-ENV:Client] Operation &#8221; is not defined in the WSDL for this service When using Zend framework&#8217;s soap client component, be sure to specifically set your soap_version to either SOAP_1_1 or SOAP_1_2. I hope this hopes someone else out in the future since Zend has not [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>For those of you getting this error</p>
<blockquote>
<h3>Uncaught SoapFault exception: [SOAP-ENV:Client]  Operation &#8221; is not defined in the WSDL for this service</h3>
</blockquote>
<p>When using Zend framework&#8217;s soap client component, be sure to specifically set your soap_version to either SOAP_1_1 or SOAP_1_2.  I hope this hopes someone else out in the future since Zend has not made any official comment as to whether they are going to fix this or not.</p>
<p>FYI the Zend bug is here:</p>
<p><a href="http://framework.zend.com/issues/browse/ZF-8165">http://framework.zend.com/issues/browse/ZF-8165</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dailyrelevance.com/php/zend-soap-client-errors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating distance using lat/long PHP</title>
		<link>http://www.dailyrelevance.com/relevance/calculating-distance-using-latlong-php</link>
		<comments>http://www.dailyrelevance.com/relevance/calculating-distance-using-latlong-php#comments</comments>
		<pubDate>Tue, 27 May 2008 03:51:51 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Relevance]]></category>
		<category><![CDATA[calculate]]></category>
		<category><![CDATA[calculation]]></category>
		<category><![CDATA[distance]]></category>
		<category><![CDATA[distance lat long]]></category>
		<category><![CDATA[lat]]></category>
		<category><![CDATA[latitude]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[longitude]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql calculation lat long]]></category>
		<category><![CDATA[php distance lat long]]></category>

		<guid isPermaLink="false">http://www.dailyrelevance.com/relevance/calculating-distance-using-latlong-php</guid>
		<description><![CDATA[Interested in calculating the distance between latitude and longitude using PHP or MySQL? After doing a bit of research on the web, I was able to find the PHP solution that I was looking for. At first I was looking at how to calculate the distance for between a latitude and longitude point mathematically, but [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Interested in calculating the distance between latitude and longitude using PHP or MySQL?  After doing a bit of research on the web, I was able to find the PHP solution that I was looking for. At first I was looking at how to calculate the distance for between a latitude and longitude point mathematically, but then tried to find out if anyone else had a solution that implemented PHP or MySQL  that I could reuse.</p>
<p>Have a look at the solution below and let me know if you have any questions.</p>
<blockquote><p>PHP:<code><br />
function getDistanceBetweenPointsNew($latitude1, $longitude1, $latitude2, $longitude2, $unit = 'Mi') {<br />
$theta = $longitude1 - $longitude2;<br />
$distance = (sin(deg2rad($latitude1)) * sin(deg2rad($latitude2))) +<br />
(cos(deg2rad($latitude1)) * cos(deg2rad($latitude2)) *<br />
cos(deg2rad($theta)));<br />
$distance = acos($distance);<br />
$distance = rad2deg($distance);<br />
$distance = $distance * 60 * 1.1515;<br />
switch($unit) {<br />
case ‘Mi’: break;<br />
case ‘Km’ : $distance = $distance * 1.609344;<br />
}return (round($distance,2));<br />
}</code></p></blockquote>
<blockquote><p>MySQL:<br />
<code><br />
$qry = "SELECT *,(((acos(sin((".$latitude."*pi()/180)) * sin((`Latitude`*pi()/180))+cos((".$latitude."*pi()/180)) * cos((`Latitude`*pi()/180)) * cos(((".$longitude."- `Longitude`)*pi()/180))))*180/pi())*60*1.1515) as distance FROM `MyTable` WHERE distance &lt;= ".$distance."<br />
</code></p></blockquote>
<p>I would like to contribute this solution to the author of <a href="http://www.douglaskarr.com/2007/09/15/calculate-distance/#comment-131439" target="_blank">The marketing technology blog</a> thanks!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dailyrelevance.com/relevance/calculating-distance-using-latlong-php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

