<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Design by Contract in PHP with Assertions</title>
	<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Sat, 10 Jan 2009 02:37:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9355</link>
		<pubDate>Sat, 14 Jun 2008 22:11:30 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9355</guid>
					<description>I think you may have a typo in your user agent string, and the script just falls back on the default (un-changable) one which I guess is Mozilla.</description>
		<content:encoded><![CDATA[<p>I think you may have a typo in your user agent string, and the script just falls back on the default (un-changable) one which I guess is Mozilla.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9354</link>
		<pubDate>Sat, 14 Jun 2008 19:32:26 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9354</guid>
					<description>... Thats crazy... i was setting up my useragent again... and somehow i double posted and it changed my version to "mozilla 1.8.1.14" crazy</description>
		<content:encoded><![CDATA[<p>&#8230; Thats crazy&#8230; i was setting up my useragent again&#8230; and somehow i double posted and it changed my version to &#8220;mozilla 1.8.1.14&#8243; crazy
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9353</link>
		<pubDate>Sat, 14 Jun 2008 19:30:53 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9353</guid>
					<description>Thats true… I should really set that up.. I just am always lazy.. uploading it just seems easier. :D its that habit thing we were talking about.</description>
		<content:encoded><![CDATA[<p>Thats true… I should really set that up.. I just am always lazy.. uploading it just seems easier. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_biggrin.gif" alt="D" class="wp-smiley" />  its that habit thing we were talking about.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9352</link>
		<pubDate>Sat, 14 Jun 2008 19:28:53 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9352</guid>
					<description>Thats true... I should really set that up.. I just am always lazy.. uploading it just seems easier. :D its that habit thing we were talking about.</description>
		<content:encoded><![CDATA[<p>Thats true&#8230; I should really set that up.. I just am always lazy.. uploading it just seems easier. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_biggrin.gif" alt="D" class="wp-smiley" />  its that habit thing we were talking about.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9294</link>
		<pubDate>Sun, 08 Jun 2008 23:27:51 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9294</guid>
					<description>[quote comment="9287"]do i have to call the database information inside the function or will it work just inside the file?[/quote]

No, not necessarily. If you do it outside of the function it should be fine. 

[quote comment="9288"]I don't have access to the ftp tonight but I will try later.. .Thanks man[/quote]

Btw, why don't you just set up a dev environment on your local machine. Check out &lt;a href="http://www.apachefriends.org/en/xampp-windows.html" rel="nofollow"&gt;XAAMP&lt;/a&gt; for example for a quick and painless setup for WAMP envirionment. It's probably quicker way to code than the upload/test/change/upload routine.</description>
		<content:encoded><![CDATA[<p><span style="padding-left: 10px;"><strong>Travis McCrea</strong> said:</span></p>
<blockquote cite="http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9287"><p>
do i have to call the database information inside the function or will it work just inside the file?</p>
</blockquote>
<p>No, not necessarily. If you do it outside of the function it should be fine. </p>
<p><span style="padding-left: 10px;"><strong>Travis McCrea</strong> said:</span></p>
<blockquote cite="http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9288"><p>
I don&#8217;t have access to the ftp tonight but I will try later.. .Thanks man</p>
</blockquote>
<p>Btw, why don&#8217;t you just set up a dev environment on your local machine. Check out <a href="http://www.apachefriends.org/en/xampp-windows.html" rel="nofollow">XAAMP</a> for example for a quick and painless setup for WAMP envirionment. It&#8217;s probably quicker way to code than the upload/test/change/upload routine.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9288</link>
		<pubDate>Sun, 08 Jun 2008 22:22:42 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9288</guid>
					<description>:P and i sure hope that its not that damn i (well i kinda do, makes it a simple fix... and easly over looked.. .thats why i hate code, i wish it would read our minds) 


I don't have access to the ftp tonight but I will try later.. .Thanks man</description>
		<content:encoded><![CDATA[<p>:P and i sure hope that its not that damn i (well i kinda do, makes it a simple fix&#8230; and easly over looked.. .thats why i hate code, i wish it would read our minds) </p>
<p>I don&#8217;t have access to the ftp tonight but I will try later.. .Thanks man
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9287</link>
		<pubDate>Sun, 08 Jun 2008 22:20:17 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9287</guid>
					<description>do i have to call the database information inside the function or will it work just inside the file?</description>
		<content:encoded><![CDATA[<p>do i have to call the database information inside the function or will it work just inside the file?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9286</link>
		<pubDate>Sun, 08 Jun 2008 21:52:18 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9286</guid>
					<description>I don't know whether or not this is a typo, but check line 51:

&lt;pre lang="php"&gt;$infa = inumber_format($data['infantry']);&lt;/pre&gt;

I think it should be number_format rather than inumber_format:

&lt;pre lang="php"&gt;$infa = number_format($data['infantry']);&lt;/pre&gt;

Also see if you can print out the results as they come out of the database:

&lt;pre lang="php"&gt;print_r($data);&lt;/pre&gt;

This may help you debug this issue.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know whether or not this is a typo, but check line 51:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #0000ff;">$infa</span> = inumber_format<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$data</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'infantry'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>I think it should be number_format rather than inumber_format:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #0000ff;">$infa</span> = <span style="color: #000066;">number_format</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$data</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'infantry'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Also see if you can print out the results as they come out of the database:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000066;">print_r</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$data</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>This may help you debug this issue.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Travis McCrea</title>
		<link>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9284</link>
		<pubDate>Sun, 08 Jun 2008 18:45:58 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/06/05/design-by-contract-in-php-with-assertions/#comment-9284</guid>
					<description>http://paste2.org/p/37171

I was wondering if you could take a look at that for me? For some reason, it doesn't display, it doesn't give me an error... it just doesn't display.

In my game I am developing, we are having an issue with sometimes when someone attacks someone else... that (since its all based on classes) between lag and something else... sometimes there are weird times when nothing shows up.

so i want to put this in the "view territory page" so when someone accesses their profile page, it will make sure that it displays the correct information, AND update it in the database. (the update part has been removed for security reasons, but it should still work even without that)</description>
		<content:encoded><![CDATA[<p><a href="http://paste2.org/p/37171" rel="nofollow">http://paste2.org/p/37171</a></p>
<p>I was wondering if you could take a look at that for me? For some reason, it doesn&#8217;t display, it doesn&#8217;t give me an error&#8230; it just doesn&#8217;t display.</p>
<p>In my game I am developing, we are having an issue with sometimes when someone attacks someone else&#8230; that (since its all based on classes) between lag and something else&#8230; sometimes there are weird times when nothing shows up.</p>
<p>so i want to put this in the &#8220;view territory page&#8221; so when someone accesses their profile page, it will make sure that it displays the correct information, AND update it in the database. (the update part has been removed for security reasons, but it should still work even without that)
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.371 seconds -->
