<?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>Stima Soft &#187; PHP</title>
	<atom:link href="http://www.evolua.ro/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evolua.ro</link>
	<description>Stima Soft web blog</description>
	<lastBuildDate>Tue, 20 Dec 2011 14:57:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>non-breaking space in MIME encoded, quoted-printable text</title>
		<link>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/</link>
		<comments>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:30:36 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=404</guid>
		<description><![CDATA[in emailurile encodate cu quoted-printable apare un caracter &#8220;space&#8221; care nu poate fi parsat nici de php nici de C#, acesta reprezinta codul &#8220;=C2=A0&#8243; in bytes &#8220;C2 A0&#8243;. UTF-8 il translateaza in 00A0. ca sa scapam de acest caracter trebuie sa-l decodam folosind functia &#8220;quoted_printable_decode&#8221; si apoi sa eliminam sir de caractere &#8220;=C2=A0&#8243; sau &#8220;\xC2\xA0&#8243; [...]]]></description>
			<content:encoded><![CDATA[<p>in emailurile encodate cu quoted-printable apare un caracter &#8220;space&#8221; care nu poate fi parsat nici de php nici de C#, acesta reprezinta codul &#8220;=C2=A0&#8243; in bytes &#8220;C2 A0&#8243;. </p>
<p>UTF-8 il translateaza in 00A0.</p>
<p>ca sa scapam de acest caracter trebuie sa-l decodam folosind functia &#8220;quoted_printable_decode&#8221; si apoi sa eliminam sir de caractere &#8220;=C2=A0&#8243; sau &#8220;\xC2\xA0&#8243;</p>
<p>mai multe informatii gasiti <a href="http://php.net/manual/en/function.quoted-printable-decode.php"">aici</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; create class properties at runtime</title>
		<link>http://www.evolua.ro/php-create-class-properties-at-runtime/</link>
		<comments>http://www.evolua.ro/php-create-class-properties-at-runtime/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 06:55:14 +0000</pubDate>
		<dc:creator>gabrielm</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=380</guid>
		<description><![CDATA[How to dynamically create  in PHP a property for an object? If the object  is $foo you use this syntax: $this-&#62;{$property} = &#8216;a value&#8217;; For example: &#60;?php class foo { public function setProperty($n, $v) { &#160;&#160;&#160;$this-&#62;{$n} = $v; } } $foo = new foo(); $foo-&#62;setProperty('property1','value1'); echo $foo-&#62;property1; //will display value1 ?&#62;]]></description>
			<content:encoded><![CDATA[<p>How to dynamically create  in PHP a property for an object?</p>
<p>If the object  is $foo you use this syntax: $this-&gt;{$property} = &#8216;a value&#8217;;</p>
<p>For example:</p>
<p><code>&lt;?php</code></p>
<p><code>class foo</code><code> {</code></p>
<p style="padding-left: 30px;"><code>public function setProperty($n, $v)<br />
{<br />
&nbsp;&nbsp;&nbsp;$this-&gt;{$n} = $v;<br />
}</p>
<p>}</code><br />
<code> </code></p>
<p><code>$foo = new foo();<br />
$foo-&gt;setProperty('property1','value1');<br />
echo $foo-&gt;property1; //will display value1<br />
?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/php-create-class-properties-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pagination on google custom search</title>
		<link>http://www.evolua.ro/pagination-on-google-custom-search/</link>
		<comments>http://www.evolua.ro/pagination-on-google-custom-search/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 10:58:55 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=358</guid>
		<description><![CDATA[in the google custom search results pagination will not keep the number of page just visited, for example if you go to the page 3 and go back via browser button you will get results from the first page. To keep visited page some custom modifications should be implemented: step 1: In the function searchCompleteCallback(), [...]]]></description>
			<content:encoded><![CDATA[<p>in the google custom search results pagination will not keep the number of page just visited,<br />
for example if you go to the page 3 and go back via browser button you will get results from the first page. </p>
<p>To keep visited page some custom modifications should be implemented:</p>
<p>step 1:<br />
In the  function searchCompleteCallback(), we need to add to all links parameter &#038;page= with calculated page counter</p>
<p>ex:</p>
<pre>
if(back_page == '')
 back_page = 0;
else
 back_page = (back_page*10)-10;
</pre>
<p>with javascript append all links with this parameter. </p>
<p>&#8230;&#8217;&#038;page=&#8217;+back_page;</p>
<p>step 2:</p>
<p>in the function google.setOnLoadCallback(function(){ set the parameter with google custeom search key,to use this application, and concatinate parameter with page number</p>
<p><strong>var customSearchControl = new google.search.CustomSearchControl(&#8216;gcs_customer_key&#8217;+'&#038;start=&#8217;.$_GET['page']);</strong></p>
<p>This will point the results from the google custom serach to the right page number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/pagination-on-google-custom-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP POST from PHP, without cURL using stream_context_create</title>
		<link>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/</link>
		<comments>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 12:08:14 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=356</guid>
		<description><![CDATA[Creates and returns a stream context with any options supplied. It can be used to send and receive information to/from the server, instead of using PEAR&#8217;s webservice. example you can find here and here]]></description>
			<content:encoded><![CDATA[<p>Creates and returns a stream context with any options supplied.</p>
<p>It can be used to send and receive information to/from the server, instead of using PEAR&#8217;s webservice.</p>
<p>example you can find <a href="http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/">here</a> and <a href="http://www.php.net/manual/en/function.stream-context-create.php">here</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jqGrid &#8211; client-side solution loading data dynamically through Ajax callbacks</title>
		<link>http://www.evolua.ro/jqgrid-client-side-solution-loading-data-dynamically-through-ajax-callbacks/</link>
		<comments>http://www.evolua.ro/jqgrid-client-side-solution-loading-data-dynamically-through-ajax-callbacks/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 13:05:11 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=352</guid>
		<description><![CDATA[jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl. jqGrid&#8217;s Home page can be found here]]></description>
			<content:encoded><![CDATA[<p>jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl. </p>
<p>jqGrid&#8217;s Home page can be found <a href=" http://trirand.com/blog/jqgrid/jqgrid.html"> here </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/jqgrid-client-side-solution-loading-data-dynamically-through-ajax-callbacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>upload de fisiere cu drag and drop</title>
		<link>http://www.evolua.ro/upload-de-fisiere-cu-drag-and-drop/</link>
		<comments>http://www.evolua.ro/upload-de-fisiere-cu-drag-and-drop/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 14:53:45 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=349</guid>
		<description><![CDATA[un plugin foarte bun de jQuery, care permite uploadarea multipla de fisiere doar cu drag and drop sursa aici]]></description>
			<content:encoded><![CDATA[<p>un plugin foarte bun de jQuery, care permite uploadarea multipla de fisiere doar cu drag and drop</p>
<p>sursa <a href="http://aquantum-demo.appspot.com/file-upload">aici</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/upload-de-fisiere-cu-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newline in celula in MSExcel</title>
		<link>http://www.evolua.ro/newline-in-celula-in-msexcel/</link>
		<comments>http://www.evolua.ro/newline-in-celula-in-msexcel/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 09:20:29 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=342</guid>
		<description><![CDATA[Excel interpreteaza < br > ca fiind un rand now, ca sa evitam aceasta problema si sa adaugam o linie noua in celula in MS Excel trebuie adaugat un CSS pentru break < style > br {mso-data-placement:same-cell;} < / style >]]></description>
			<content:encoded><![CDATA[<p>Excel interpreteaza < br > ca fiind un rand now, ca sa evitam aceasta problema si sa adaugam o linie noua in celula in MS Excel trebuie adaugat un CSS pentru break</p>
<p>< style ><br />
  br {mso-data-placement:same-cell;}<br />
< / style ></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/newline-in-celula-in-msexcel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cookies won&#8217;t work in IE if your site is inside an IFRAME</title>
		<link>http://www.evolua.ro/cookies-wont-work-in-ie-if-your-site-is-inside-an-iframe/</link>
		<comments>http://www.evolua.ro/cookies-wont-work-in-ie-if-your-site-is-inside-an-iframe/#comments</comments>
		<pubDate>Tue, 17 May 2011 07:16:04 +0000</pubDate>
		<dc:creator>gabrielm</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[p3p]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=335</guid>
		<description><![CDATA[Internet Explorer gives lower level of trust to IFRAME pages (IE calls this &#8220;third-party&#8221; content). If the page inside the IFRAME doesn&#8217;t have a Privacy Policy, its cookies are blocked. However if you add  a header like this (in PHP) it will work: header(&#8216;P3P:CP=&#8221;NOI CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT&#8221;&#8216;); [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer gives lower level of trust to IFRAME pages (IE calls  this &#8220;third-party&#8221; content). If the page inside the IFRAME doesn&#8217;t have a  Privacy Policy, its cookies are blocked.</p>
<p>However if you add  a header like this (in PHP) it will work:</p>
<p>header(&#8216;P3P:CP=&#8221;NOI CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT&#8221;&#8216;);</p>
<p>This sets a  P3P header with a privacy policy that is acceptable to IE, and the cookies will be accepted.</p>
<p>More info: <a href="http://stackoverflow.com/questions/389456/cookie-blocked-not-saved-in-iframe-in-internet-explorer" target="_blank">here</a> and <a href="http://en.wikipedia.org/wiki/P3P" target="_blank">here</a>.</p>
<p>A tool for generating policy privacy can be downloaded <a href="http://www.alphaworks.ibm.com/tech/p3peditor/download" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/cookies-wont-work-in-ie-if-your-site-is-inside-an-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing Hierarchical Data in MySQL</title>
		<link>http://www.evolua.ro/managing-hierarchical-data-in-mysql/</link>
		<comments>http://www.evolua.ro/managing-hierarchical-data-in-mysql/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:07:25 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=301</guid>
		<description><![CDATA[Exemple de generare categoriilor ierarhic din SQL exemplu: LOCK TABLE nested_category WRITE; SELECT @myRight := rgt FROM nested_category WHERE name = &#8216;TELEVISIONS&#8217;; UPDATE nested_category SET rgt = rgt + 2 WHERE rgt > @myRight; UPDATE nested_category SET lft = lft + 2 WHERE lft > @myRight; INSERT INTO nested_category(name, lft, rgt) VALUES(&#8216;GAME CONSOLES&#8217;, @myRight + [...]]]></description>
			<content:encoded><![CDATA[<p>Exemple de generare categoriilor ierarhic din SQL</p>
<p>exemplu:</p>
<p>LOCK TABLE nested_category WRITE;</p>
<p>SELECT @myRight := rgt FROM nested_category<br />
WHERE name = &#8216;TELEVISIONS&#8217;;</p>
<p>UPDATE nested_category SET rgt = rgt + 2 WHERE rgt > @myRight;<br />
UPDATE nested_category SET lft = lft + 2 WHERE lft > @myRight;</p>
<p>INSERT INTO nested_category(name, lft, rgt) VALUES(&#8216;GAME CONSOLES&#8217;, @myRight + 1, @myRight + 2);</p>
<p>UNLOCK TABLES;</p>
<p>SELECT CONCAT( REPEAT(&#8216; &#8216;, COUNT(parent.name) &#8211; 1), node.name) AS name<br />
FROM nested_category AS node,<br />
nested_category AS parent<br />
WHERE node.lft BETWEEN parent.lft AND parent.rgt<br />
GROUP BY node.name<br />
ORDER BY node.lft;</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| name                  |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| ELECTRONICS           |<br />
| -TELEVISIONS          |<br />
| &#8211; -TUBE                |<br />
| &#8211; -LCD                 |<br />
| &#8211; -PLASMA              |<br />
| -PORTABLE ELECTRONICS |<br />
| &#8211; -MP3 PLAYERS         |<br />
| &#8211; -FLASH              |<br />
| &#8211;CD PLAYERS          |<br />
| &#8211;2 WAY RADIOS        |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+</p>
<p>Soursa: <b><a href="http://dev.mysql.com/tech-resources/articles/hierarchical-data.html"> aici </a></b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/managing-hierarchical-data-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to write a PDF from PHP with a custom font and encoding</title>
		<link>http://www.evolua.ro/how-to-write-a-pdf-from-php-with-a-custom-font-and-encoding/</link>
		<comments>http://www.evolua.ro/how-to-write-a-pdf-from-php-with-a-custom-font-and-encoding/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 08:06:41 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=296</guid>
		<description><![CDATA[TCPDF is an Open Source PHP class for generating PDF documents. It continues where FPDF stopped, and contains all its goodies plus support of UTF-8 Unicode and Right-To-Left languages! Especially the missing UTF-8 Unicode support in FPDF is a problem for everyone living outside the English language only countries. * Go to www.tcpdf.org and download [...]]]></description>
			<content:encoded><![CDATA[<p>TCPDF is an Open Source PHP class for generating PDF documents. It continues where FPDF stopped, and contains all its goodies plus support of UTF-8 Unicode and Right-To-Left languages! Especially the missing UTF-8 Unicode support in FPDF is a problem for everyone living outside the English language only countries.</p>
<p>* Go to <a href="http://www.tcpdf.org" target="_blank">www.tcpdf.org</a>  and download the latest version of TCPDF.</p>
<h2>Main Features:</h2>
<p>    * no external libraries are required for the basic functions;<br />
    * all ISO page formats, custom page formats, custom margins and units of measure;<br />
    * UTF-8 Unicode and Right-To-Left languages;<br />
    * TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;<br />
    * methods to publish some XHTML code, Javascript and Forms;<br />
    * images, graphic (geometric figures) and transformation methods;<br />
    * 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index &#8211; Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, QR-Code;<br />
    * Grayscale, RGB, CMYK, Spot Colors and Transparencies;<br />
    * automatic page header and footer management;<br />
    * document encryption and digital signature certifications;<br />
    * transactions to UNDO commands;<br />
    * PDF annotations, including links, text and file attachments;<br />
    * text rendering modes (fill, stroke and clipping);<br />
    * multiple columns mode;<br />
    * bookmarks and table of content;<br />
    * text hyphenation;<br />
    * automatic page break, line break and text alignments including justification;<br />
    * automatic page numbering and page groups;<br />
    * move and delete pages;<br />
    * page compression.</p>
<h3>Check the default <a href="http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples"  target="_blank">TCPDF Examples</a>. </h3>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/how-to-write-a-pdf-from-php-with-a-custom-font-and-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


