<?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>Piotr Zaniewicz &#187; php</title>
	<atom:link href="http://piotr.eldora.pl/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://piotr.eldora.pl</link>
	<description>Ideas not to be forgotten...</description>
	<lastBuildDate>Wed, 11 Jan 2012 20:14:12 +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>Bank mBank eksportowanie listy wszystkich odbiorców do pliku</title>
		<link>http://piotr.eldora.pl/2011/05/27/bank-mbank-eksportowanie-wszystkich-odbiorcow-do-pliku</link>
		<comments>http://piotr.eldora.pl/2011/05/27/bank-mbank-eksportowanie-wszystkich-odbiorcow-do-pliku#comments</comments>
		<pubDate>Fri, 27 May 2011 19:40:36 +0000</pubDate>
		<dc:creator>Piotr Zaniewicz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Win]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[eksport]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[lista]]></category>
		<category><![CDATA[mbank]]></category>
		<category><![CDATA[odbiorców]]></category>
		<category><![CDATA[odbiorcy]]></category>

		<guid isPermaLink="false">http://piotr.eldora.pl/?p=155</guid>
		<description><![CDATA[Niestety żaden Polski bank nie udostępnia funkcji eksportowania wprowadzonych odbiorców. W tym celu napisałem skrypt, który pozwala to osiągnąć osobom korzystającym z konta w mBanku. Po wprowadzeniu podstawowych danych skrypt loguje się na strony banku i ściąga wszystkich odbiorców. Następnie zapisuje ich do pliku CSV. Plik PHPS jest dostępny tutaj. W razie problemów służę pomocą, [...]]]></description>
			<content:encoded><![CDATA[<p>Niestety żaden Polski bank nie udostępnia funkcji eksportowania wprowadzonych odbiorców.<br />
W tym celu napisałem skrypt, który pozwala to osiągnąć osobom korzystającym z konta w mBanku.<br />
Po wprowadzeniu podstawowych danych skrypt loguje się na strony banku i ściąga wszystkich odbiorców. Następnie zapisuje ich do pliku CSV.</p>
<p>Plik PHPS jest dostępny <a href="http://piotr.eldora.pl/.downloads/mbank_eksport_odb.phps">tutaj</a>.</p>
<p>W razie problemów służę pomocą, a za przekazaniem drobnego wsparcia mogę za kogoś przeprowadzić eksport. Oczywiście dyskrecja gwarantowana.</p>
]]></content:encoded>
			<wfw:commentRss>http://piotr.eldora.pl/2011/05/27/bank-mbank-eksportowanie-wszystkich-odbiorcow-do-pliku/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mathematics skill testing quiz</title>
		<link>http://piotr.eldora.pl/2010/04/25/mathematics-skill-testing-quiz</link>
		<comments>http://piotr.eldora.pl/2010/04/25/mathematics-skill-testing-quiz#comments</comments>
		<pubDate>Sun, 25 Apr 2010 16:46:45 +0000</pubDate>
		<dc:creator>Piotr Zaniewicz</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[quiz]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://piotr.eldora.pl/?p=126</guid>
		<description><![CDATA[In case you need to practice your basic maths skills, you can use my freshly developed online maths skills quiz. I have developed it in PHP and it uses Ajax scripting to retrieve new questions. All questions are random, and no results are stored on the server side. In case you are interested in the [...]]]></description>
			<content:encoded><![CDATA[<p>In case you need to practice your basic maths skills, you can use my freshly developed online <a href="http://piotr.eldora.pl/.tools/mathquiz/">maths skills quiz</a>.</p>
<p>I have developed it in PHP and it uses Ajax scripting to retrieve new questions. All questions are random, and no results are stored on the server side.</p>
<p>In case you are interested in the source code. Let me know, I will be happy to share it with you.</p>
<p>Good luck !</p>
]]></content:encoded>
			<wfw:commentRss>http://piotr.eldora.pl/2010/04/25/mathematics-skill-testing-quiz/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractions in PHP and whole numbers</title>
		<link>http://piotr.eldora.pl/2010/04/20/fractions-in-php-and-whole-numbers</link>
		<comments>http://piotr.eldora.pl/2010/04/20/fractions-in-php-and-whole-numbers#comments</comments>
		<pubDate>Tue, 20 Apr 2010 16:52:38 +0000</pubDate>
		<dc:creator>Piotr Zaniewicz</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://piotr.eldora.pl/?p=117</guid>
		<description><![CDATA[I have been searching for a good PHP class for fraction handling and found Math_Fraction in the PEAR database. However, it was still lacking a possibility to display the whole numbers of a fraction and I had to rewrite the last function in the Fraction.php file. Here it is: 1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p>I have been searching for a good PHP class for fraction handling and found <a href="http://pear.php.net/package/Math_Fraction/">Math_Fraction</a> in the PEAR database.<br />
However, it was still lacking a possibility to display the whole numbers of a fraction and I had to rewrite the last function in the Fraction.php file.<br />
Here it is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> toString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$whole</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$n</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getNum</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$d</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDen</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$whole</span> <span style="color: #339933;">==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$n</span>/<span style="color: #006699; font-weight: bold;">$d</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span><span style="color: #339933;">==</span><span style="color: #000088;">$d</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$d</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">return</span> <span style="color: #990000;">floatval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$d</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$w</span> <span style="color: #339933;">=</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span><span style="color: #339933;">/</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$n</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$d</span><span style="color: #339933;">*</span><span style="color: #000088;">$w</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$w</span> <span style="color: #006699; font-weight: bold;">$n</span>/<span style="color: #006699; font-weight: bold;">$d</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>I have also informed the maintainer about it, so he might update it some time.<br />
Meanwhile I invite you to use this simple, yet effective solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://piotr.eldora.pl/2010/04/20/fractions-in-php-and-whole-numbers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: piotr.eldora.pl @ 2012-02-06 22:48:43 -->
