<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://sina.salek.ws"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Sina Salek Official Site - PHP</title>
 <link>https://sina.salek.ws/taxonomy/term/127/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>We upgraded PHP to 5.6 on our Linux server today, and i&#039;m satisfied with the result :)</title>
 <link>https://sina.salek.ws/content/we-upgraded-php-56-our-linux-server-today-and-im-satisfied-result</link>
 <description>We upgraded PHP to 5.6 on our Linux server today, and i&amp;#039;m satisfied with the result :)</description>
 <comments>https://sina.salek.ws/content/we-upgraded-php-56-our-linux-server-today-and-im-satisfied-result#comments</comments>
 <category domain="https://sina.salek.ws/category/path/microblog">Microblog</category>
 <category domain="https://sina.salek.ws/category/tags/linux">Linux</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <pubDate>Fri, 28 Nov 2014 11:20:48 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1556 at https://sina.salek.ws</guid>
</item>
<item>
 <title>IMO PHP 5.4 trait feature worth all the troubles of upgrading an object oriented PHP code base</title>
 <link>https://sina.salek.ws/content/imo-php-54-trait-feature-worth-all-troubles-upgrading-object-oriented-php-code-base</link>
 <description>IMO PHP 5.4 trait feature worth all the troubles of upgrading an object oriented PHP code base</description>
 <comments>https://sina.salek.ws/content/imo-php-54-trait-feature-worth-all-troubles-upgrading-object-oriented-php-code-base#comments</comments>
 <category domain="https://sina.salek.ws/category/path/microblog">Microblog</category>
 <category domain="https://sina.salek.ws/category/tags/development">Development</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <category domain="https://sina.salek.ws/category/tags/upgrade">Upgrade</category>
 <category domain="https://sina.salek.ws/category/tags/work">Work</category>
 <pubDate>Sat, 28 Jun 2014 07:27:06 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1541 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Linux Shell Bridge (Passing variables from scripting langauges like PHP to Linux Shell)</title>
 <link>https://sina.salek.ws/content/linux-shell-bridge-passing-variables-scripting-langauges-php-linux-shell</link>
 <description>&lt;p style=&quot;text-align: justify;&quot;&gt;It might sound strange at first but i 
must say that it&#039;s very useful 
specially if you have shell scripts as part of your application. Usually
 For making this scripts as automated as possible there should be a way 
to
 reuse the application&#039;s configurations (ips, passwords , etc) and not 
having to update a separate configuration file whenever anything changes
 in the application. It&#039;s not limited only to this and can be used to 
pass any kind of variables.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/linux-shell-bridge-passing-variables-scripting-langauges-php-linux-shell&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/linux-shell-bridge-passing-variables-scripting-langauges-php-linux-shell#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/bash-script">Bash-Script</category>
 <category domain="https://sina.salek.ws/category/tags/bridge">Bridge</category>
 <category domain="https://sina.salek.ws/category/tags/cli">CLI</category>
 <category domain="https://sina.salek.ws/category/tags/linux">Linux</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <category domain="https://sina.salek.ws/category/tags/sys-administration">Sys Administration</category>
 <pubDate>Thu, 18 Feb 2010 19:21:09 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1304 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Sorting two dimensional array like query result by sub array&#039;s key in PHP</title>
 <link>https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php</link>
 <description>&lt;p&gt;PHP offers &lt;a href=&quot;http://www.php.net/manual/en/array.sorting.php&quot; target=&quot;_blank&quot;&gt;dozens of functions&lt;/a&gt; for sorting arrays, but unfortualey non of this functions support sorting by sub-key&#039;s value out of the box. It&#039;s very useful when you want to sort the result of a query by an specific column.&lt;/p&gt;&lt;p&gt;Sample : &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <pubDate>Fri, 15 Jan 2010 21:20:00 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1308 at https://sina.salek.ws</guid>
</item>
<item>
 <title>PHP&#039;s forward compatible version compare</title>
 <link>https://sina.salek.ws/content/phps-forward-compatible-version-compare</link>
 <description>&lt;p&gt;Sometimes the code is forward compatible, for example when it&#039;s compatible with all future PHP5 releases, put PHP&#039;s &lt;a href=&quot;http://php.net/manual/en/function.version-compare.php&quot;&gt;version_compare&lt;/a&gt; function does not support this (Perhaps because they know that they always break compatibility with every minor release!!!). This function supports .x, for the above example it&#039;s : 5.x&lt;/p&gt;&lt;p&gt;

It&#039;s also shared &lt;a href=&quot;http://www.php.net/manual/en/function.version-compare.php#92935&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/phps-forward-compatible-version-compare&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/phps-forward-compatible-version-compare#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <pubDate>Wed, 25 Nov 2009 23:41:11 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1288 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Unix like smart recursive file/folder copy function for PHP</title>
 <link>https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php</link>
 <description>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;PHP&#039;s&lt;/span&gt; file system manipulation 
functions are not as complete as they should be specially when it comes 
to manging recursive folders.&lt;/span&gt; For addressing part of this issue i
 decided to write a smart function which can handle recursive 
file/folder copy easily.&lt;/p&gt;&lt;p&gt;As you 
may have noticed there are feature that i didn&#039;t have time to implement ,
 so if you have time to extend this function please notify me as well 
:).

It&#039;s also shared &lt;a href=&quot;http://www.php.net/manual/en/function.copy.php#91256&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/tutorial">Tutorial</category>
 <pubDate>Wed, 25 Nov 2009 05:50:25 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1289 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Alpha support for PHP&#039;s imagecopymerge function</title>
 <link>https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function</link>
 <description>&lt;p&gt;I&#039;ve just checked PHP&#039;s issue tracker and a core developer says that this function (&lt;a href=&quot;http://www.php.net/manual/en/function.imagecopymerge.php&quot;&gt;imagecopymerge&lt;/a&gt;) was never meant to support alpha channel! and they refused to commit the provided patch! so ridicules Anyway i tried &lt;a href=&quot;http://www.php.net/manual/en/function.imagecopymerge.php#88456&quot;&gt;rodrigo&#039;s workaround&lt;/a&gt; and it worked quite well, thanks rodrigo for sharing it. I came up with another idea which is much faster than his solution, (it may need a little bit more memory)&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <pubDate>Mon, 23 Nov 2009 05:39:31 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1287 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Update/Upgrade/Install XAMPP (LAMPP) modules by Compiling</title>
 <link>https://sina.salek.ws/content/updateupgradeinstall-xampp-lampp-modules-compiling</link>
 <description>&lt;p&gt;&lt;em&gt;This article is not finished yet and it might not work for you at all, if you&#039;re still interested you can subscribe to its rss so you will be noticed whenever i update it.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;XAMPP source code &lt;a href=&quot;http://www.nat32.com/xampp/index.htm&quot; title=&quot;http://www.nat32.com/xampp/index.htm&quot;&gt;http://www.nat32.com/xampp/index.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.apachefriends.org/f/viewtopic.php?f=16&amp;amp;t=34411&quot; title=&quot;http://www.apachefriends.org/f/viewtopic.php?f=16&amp;amp;t=34411&quot;&gt;http://www.apachefriends.org/f/viewtopic.php?f=16&amp;amp;t=34411&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/updateupgradeinstall-xampp-lampp-modules-compiling&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/updateupgradeinstall-xampp-lampp-modules-compiling#comments</comments>
 <category domain="https://sina.salek.ws/category/path/research/project">Project</category>
 <category domain="https://sina.salek.ws/category/tags/lampp">LAMPP</category>
 <category domain="https://sina.salek.ws/category/tags/linux">Linux</category>
 <category domain="https://sina.salek.ws/category/tags/open-source-0">Open Source</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/sys-administration">Sys Administration</category>
 <category domain="https://sina.salek.ws/category/tags/tutorial">Tutorial</category>
 <category domain="https://sina.salek.ws/category/tags/xampp">XAMPP</category>
 <category domain="https://sina.salek.ws/category/research-flags/useful">Useful</category>
 <pubDate>Sat, 24 Oct 2009 05:37:28 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1263 at https://sina.salek.ws</guid>
</item>
<item>
 <title>PHP5 and Exception handling</title>
 <link>https://sina.salek.ws/content/php5-and-exception-handling</link>
 <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;Introduction&lt;/h2&gt;&lt;p&gt;Quite some time ago i dropped php4 support on all of my projects and started thinking how i can benefit from PHP5 new features specially the new exception handling system. due to the fact thatPHP4 had no official exception system, programmers had to come up with their own way for handling exceptions properly , one this solutions was PEAR ERROR which i think was very useful, and i think that even thought PHP5 developers no longer need that technique it still can be used for better code quality in various circumstances.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/php5-and-exception-handling&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/php5-and-exception-handling#comments</comments>
 <category domain="https://sina.salek.ws/category/path/research/project">Project</category>
 <category domain="https://sina.salek.ws/category/tags/error-handling">Error Handling</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/php5">PHP5</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <category domain="https://sina.salek.ws/category/research-flags/useful">Useful</category>
 <pubDate>Thu, 17 Sep 2009 16:07:50 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1241 at https://sina.salek.ws</guid>
</item>
</channel>
</rss>
