<?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>PHP Architect blog &#187; MySQL</title>
	<atom:link href="http://www.php-architect.com/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>me, myself, and my code</description>
	<lastBuildDate>Wed, 14 Sep 2011 12:50:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Backup or Export, Compress and upload mysql database to remote host</title>
		<link>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-or-export-compress-and-upload-mysql-database-to-remote-host</link>
		<comments>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 04:09:52 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=11847</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/" title="Backup or Export, Compress and upload mysql database to remote host"></a>This is a handy command that i use to backup or export, compress and upload a mysql database to my remote host, very handy when you wanna upload your development database to the remote host after some changes. /usr/mysql/bin/mysqldump --opt &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/" title="Backup or Export, Compress and upload mysql database to remote host"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>This is a handy command that i use to backup or export, compress and upload a mysql database to my remote host, very handy when you wanna upload your development database to the remote host after some changes.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqldump <span style="color: #660033;">--opt</span> <span style="color: #660033;">-uUsername</span> <span style="color: #660033;">-pPassword</span> Databasename  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-q</span> user<span style="color: #000000; font-weight: bold;">@</span>remote-host.com <span style="color: #ff0000;">'cat &gt; ~/Databasename.sql.gz'</span></pre></div></div>
<p><span style="text-decoration: underline;">Replace the following :</span></p>
<ul>
<li><strong> /usr/mysql/bin/mysqldump : </strong>The path for mysqldump on your localmachine</li>
<li><strong> Username : </strong>Username for local mysql database.</li>
<li><strong> Password : </strong>Password for local mysql database.</li>
<li><strong> Databasename : </strong>Name of the database to export.</li>
<li><strong> user@remote-host.com : </strong>the user and the IP or the address of the remote host.</li>
</ul>
<p>the above command will upload the compressed database to your home directory on the remote host, to change the directoy, replace <strong>~/ </strong>with the path you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Where I am ?</title>
		<link>http://www.php-architect.com/blog/2010/10/19/where-i-am/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=where-i-am</link>
		<comments>http://www.php-architect.com/blog/2010/10/19/where-i-am/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 01:31:57 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[lamptag]]></category>
		<category><![CDATA[status]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=7059</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/" title="Where I am ?"></a>Looks like i have stopped blogging for a while. except from some trips and tricks I am keeping for my reference and public users. well that&#8217;s not the case but since the team I am working with grew to around &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/" title="Where I am ?"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/10/19/where-i-am/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Looks like i have stopped blogging for a while. except from some trips and tricks I am keeping for my reference and public users.</p>
<p>well that&#8217;s not the case but since the team I am working with grew to around 22 developer, which i believe considered the biggest php team in one company in Egypt, things were going so crazy, lots of projects going, lots of new approaches, new integrations, and i have to be on top of it all the time.</p>
<p>meanwhile i am driven by four ideas for projects that i believe is gonna make a little difference in their business areas, I am prototyping each one of them, jumping from one to other, I launched one of them already which is <a title="Lamp Tag" href="http://www.lamptag.com" target="_blank">www.lamptag.com</a>, which is simply a crawler for LAMP resources and related technologies, after less than a month from launching he prototype, the feedback is good, the twitter page reached 100 follower. and the number of clicks on the links is good too.</p>
<p>Soon i will blog about the recent challenged i have encountered in the field, weather they are technically or management related.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/10/19/where-i-am/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recruitment System &#8211; One of my projects</title>
		<link>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recruitment-system-one-of-my-projects</link>
		<comments>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/#comments</comments>
		<pubDate>Sat, 08 May 2010 14:57:04 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Favorites]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail System]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[cha]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[recruitment]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zf]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=390</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/" title="Recruitment System - One of my projects"></a>I wanted to post this since a while. The recruitment system is one of the applications I built for cha-international while working there beside developing the Middle East &#38; North Africa travel awards system, mail marketing system, and converting all &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/" title="Recruitment System - One of my projects"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>I wanted to post this since a while.</p>
<p>The <a title="PHP Recruitment System" href="http://www.cha-international.com/" target="_self">recruitment system</a> is one of the applications I built for <span style="color: #008000;"><a href="http://www.cha-international.com/" target="_blank">cha-international</a></span> while working there beside developing the <a title="MENA Travel Awards" href="http://www.menatravelawards.com" target="_blank">Middle East &amp; North Africa travel awards system</a>, mail marketing system, and converting all their servers from windows to Linux.</p>
<p>In brief the system has the following features :</p>
<ul>
<li>Backend :</li>
</ul>
<blockquote>
<ol>
<li>Managing countries, Nationalities, Languages, World Areas, System Announcements.</li>
<li>Managing Education Levels, Industries, Titles, Departments, System Reply Messages, Candidate Status, Candidates Classifications, and Quotes.</li>
<li>Testimonials section where the company can post its clients testimonials to be displayed in the frontend.</li>
<li>Managing 2 types of resumes : Uploaded Attachments, and Detailed filled forms Resumes.</li>
<li>Easy form for the data entry team to add the resumes from the backend.</li>
<li>Searching for candidates, using simple forms like name, email or advanced one which contains name, different nationalities, different languages, age, sex, industry, title, keyword in resume, etc.</li>
<li>Consultants area where they can post / close job posting, search  for candidates, export word version of resumes, add to their favorite list, recommend them to another consultant.</li>
<li>Consultants also can comment on the resumes, change their availability status to be seen by other consultants, and communicate with the candidate through the reply messages and keep track of those sent messages.</li>
<li>The system has a approval workflow engine, the admins have to check the resume to approve it first.</li>
<li>The system has a privileges section where the administrator can create a new role, assign access to certain areas in the backend to certain role, and assign the roles to system users.</li>
<li>Feedback system where the backend users can communicate with the administrator for support tickets, etc.</li>
<li>Auditrail system where every action in the system is logged.</li>
</ol>
</blockquote>
<ul>
<li>Frontend:</li>
</ul>
<blockquote>
<ol>
<li>Simple upload form where users can just upload their resume and simple details.</li>
<li>Advanced profile form where users can fill in all the details, and add many attachments to their profiles.</li>
<li>Listing, Simple search, advanced search for jobs, and applying to them.</li>
<li>Clients area where they can request certain services.</li>
<li>Featured profiles, where a certain profiles selected by the admins showed in frontend.</li>
</ol>
</blockquote>
<blockquote><p>The project was completely built from scratch using Zend Framework, and right now it has more than 70,000 applicant in its database, and the system is as fast as you see in the videos, these demos were taken with 50,000 record in the database.</p></blockquote>
<blockquote><p>Please don&#8217;t give me any feedback on the design <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> , I am just a developer.</p></blockquote>
<blockquote><p>Here is some videos describing the different features of the system, I will try to post a better quality ones later.</p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><strong>Change your Signature</strong></p>
</blockquote>
<blockquote>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/KXMg4q43Vf0?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=KXMg4q43Vf0">www.youtube.com/watch?v=KXMg4q43Vf0</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Search Resumes</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/UUCuQ3XZmHg?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=UUCuQ3XZmHg">www.youtube.com/watch?v=UUCuQ3XZmHg</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Apply as New Candidate</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/UNMVIahQAeU?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=UNMVIahQAeU">www.youtube.com/watch?v=UNMVIahQAeU</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Send Feedback to support</strong></p>
<p style="text-align: center;"><strong> </strong><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/-QiwYphCi2k?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=-QiwYphCi2k">www.youtube.com/watch?v=-QiwYphCi2k</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Consultant Functionality walk through<br />
</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/wU6MDYO-xsw?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=wU6MDYO-xsw">www.youtube.com/watch?v=wU6MDYO-xsw</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Check who applied for your job</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/X7_ZNVjksKg?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=X7_ZNVjksKg">www.youtube.com/watch?v=X7_ZNVjksKg</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Apply for Posted Job</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/B06xlZr8A-w?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=B06xlZr8A-w">www.youtube.com/watch?v=B06xlZr8A-w</a></p></p>
<p style="text-align: center;">&nbsp;</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Add &amp; Subtract time code in Python</title>
		<link>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-subtract-time-code-in-python</link>
		<comments>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:58:20 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[edl]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[timecode]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=167</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/" title="How to Add &amp; Subtract time code in Python"></a>I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code. for example i have a video that starts from 12:45:05 and &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/" title="How to Add &amp; Subtract time code in Python"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code.</p>
<p>for example i have a video that starts from 12:45:05 and i want to add 59 seconds to it and use the new time.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">from datetime import datetime
from datetime import timedelta
&nbsp;
<span style="color: #000000; font-weight: bold;">time</span> = datetime<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2009</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">45</span>, 05, <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">diff</span> = timedelta<span style="color: #7a0874; font-weight: bold;">&#40;</span>seconds = <span style="color: #000000;">59</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
final_time = <span style="color: #000000; font-weight: bold;">time</span> + <span style="color: #c20cb9; font-weight: bold;">diff</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Certified Engineer</title>
		<link>http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zend-certified-engineer</link>
		<comments>http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/#comments</comments>
		<pubDate>Thu, 21 May 2009 07:15:23 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Status]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zce]]></category>
		<category><![CDATA[zend]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=321</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/" title="Zend Certified Engineer"></a>Hi mates, finally i have got certified as Zend Certified Engineer on 10th of this month. i have been decided to take the exam since a year, but was too busy to hold myself at home and revise the manual &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/" title="Zend Certified Engineer"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Hi mates,</p>
<p>finally i have got certified as Zend Certified Engineer on 10th of this month.</p>
<p>i have been decided to take the exam since a year, but was too busy to hold myself at home and revise the manual and prepare for the exam, but this month i said this is it.</p>
<p>The exam is very tricky with lots of confusing questions, it tests your ability of thinking and your real experience with php, web development, security and many other topics that some people will not expect to exist in PHP exam, it is  real benchmarking to your abilities.</p>
<p>I must say that preaparing for the exam has opened various topics for me to dig deep in, and it was a great experience.</p>
<p>And being one of the only 2 certified in Egypt is cool <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/05/21/zend-certified-engineer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Build MySQL insert Query from Array that contains fields and values</title>
		<link>http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-mysql-insert-query-from-array-that-contains-fields-and-values</link>
		<comments>http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 12:30:50 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[query]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=261</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/" title="Build MySQL insert Query from Array that contains fields and values"></a>The following function takes table name, and array where its keys are the table fields and it&#8217;s values are the values to insert in each field, it constructs the MySQL Query based on the input and executes it to insert &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/" title="Build MySQL insert Query from Array that contains fields and values"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>The following function takes table name, and array where its keys are the table fields and it&#8217;s values are the values to insert in each field, it constructs the MySQL Query based on the input and executes it to insert the data.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> insertRow<span style="color: #009900;">&#40;</span><span style="color: #000088;">$table_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$input_array</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span>SERVER<span style="color: #339933;">,</span> USER<span style="color: #339933;">,</span> PASS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span>DATABASE<span style="color: #339933;">,</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$SQL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;INSERT INTO <span style="color: #006699; font-weight: bold;">$table_name</span> &quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;(&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;(&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$input_array</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$k</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$fields</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;`<span style="color: #006699; font-weight: bold;">$k</span>` ,&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$values</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;'<span style="color: #006699; font-weight: bold;">$v</span>' ,&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$fields</span> <span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$values</span> <span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,#&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fields</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,#&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fields</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;)&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$values</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;)&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$SQL</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$fields</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; VALUES &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$values</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$SQL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/02/22/build-mysql-insert-query-from-array-that-contains-fields-and-values/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to enable mod_rewrite in apache2.2 (debian/ubuntu)</title>
		<link>http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-enable-mod_rewrite-in-apache22-debianubuntu</link>
		<comments>http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:57:01 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Design]]></category>
		<guid isPermaLink="false">http://www.abdelaliem.com/?p=61</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/" title="how to enable mod_rewrite in apache2.2 (debian/ubuntu)"></a>Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian. In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable . First install the apache2.2 with this command &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/" title="how to enable mod_rewrite in apache2.2 (debian/ubuntu)"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian.</p>
<p>In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable .</p>
<p>First install the apache2.2 with this command :<br />
debian user please use </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/06/18/how-to-enable-mod_rewrite-in-apache22-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Architectural principles</title>
		<link>http://www.php-architect.com/blog/2008/06/05/architectural-principles/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=architectural-principles</link>
		<comments>http://www.php-architect.com/blog/2008/06/05/architectural-principles/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 15:17:08 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Favorites]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Web Design]]></category>
		<guid isPermaLink="false">http://www.abdelaliem.com/?p=59</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/05/architectural-principles/" title="Architectural principles"></a>Each project must have a clear customer and deliver a real benefit. Don’t Repeat Yourself (DRY). Life is too short to spend your time re-inventing things. Be as simple as possible. Just do what we need to do now. Be &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2008/06/05/architectural-principles/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/05/architectural-principles/" title="Architectural principles"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/06/05/architectural-principles/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><ol>
<li>Each project must have a clear customer and deliver a real benefit.</li>
<li>Don’t Repeat Yourself (DRY). Life is too short to spend your time re-inventing things.</li>
<li>Be as simple as possible. Just do what we need to do now.</li>
<li>Be as open as possible. Assume that all services can be accessed from outside the BBC, by default.</li>
<li>Start simple, then iterate. Build the smallest thing you could possibly need, deploy it, then build applications on top of it. Think building blocks, not monoliths.</li>
<li>Don’t optimise prematurely. The service might not grow the way we think it will.</li>
<li>Build to scale. Think stateless, think content delivery networks, think database resilience.</li>
<li>Test often. So you know when you need to optimise. So you can maintain your code. So you can maintain your platform.</li>
<li>Evolve. Teams, systems, support structures. The platform. These principles!</li>
<li>Let it die. Be prepared to turn your system off, or change it unrecognisably.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/06/05/architectural-principles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The future is PHP</title>
		<link>http://www.php-architect.com/blog/2008/06/04/the-future-is-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-future-is-php</link>
		<comments>http://www.php-architect.com/blog/2008/06/04/the-future-is-php/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 15:44:31 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Web Design]]></category>
		<guid isPermaLink="false">http://www.abdelaliem.com/?p=57</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/04/the-future-is-php/" title="The future is PHP"></a>With PHP continuing to gain massive support from programmers looking to expand their programming horizon, new versions of the language are likely to be geared towards solidifying its position as opposed to revolutionising. The job market is telling nothing but &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2008/06/04/the-future-is-php/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/06/04/the-future-is-php/" title="The future is PHP"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/06/04/the-future-is-php/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="entrybody">
<div class="snap_preview">
<p>With PHP continuing to gain massive support from programmers looking to expand their programming horizon, new versions of the language are likely to be geared towards solidifying its position as opposed to revolutionising.</p>
<p style="text-align: center;"><a href="http://phpimpact.files.wordpress.com/2008/05/permanent-demand-trendaspx.png" rel="lightbox[51]"><img class="alignnone size-full wp-image-187" src="http://phpimpact.files.wordpress.com/2008/05/permanent-demand-trendaspx.png?w=480&amp;h=218" alt="" width="480" height="218" /></a><br />
<em>The job market is telling nothing but good news</em></p>
<p>When Perl 6 was being designed, many huge changes were brought that alienated a lot of developers &#8211; hopefully PHP will not go the same way.In the meantime, be happy that you have chosen such a popular language that is advancing so quickly &#8211; PHP is here to stay, and things are only going to get better.The simplicity of scripting language PHP means it will be more popular than Java for building Web-based applications, Internet browser pioneer <a href="http://en.wikipedia.org/wiki/Marc_Andreessen">Marc Andreessen</a> predicted in a speech in Burlingame, California, at the Zend/PHP Conference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/06/04/the-future-is-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix the MySQL PHP issue in Leopard (mysql.sock file)</title>
		<link>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-the-mysql-php-issue-in-leopard-mysqlsock-file</link>
		<comments>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 13:39:25 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[arabic]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[php5]]></category>
		<guid isPermaLink="false">http://www.abdelaliem.com/blog/?p=20</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/" title="Fix the MySQL PHP issue in Leopard (mysql.sock file)"></a>This is a known issue in Leopard, basically the system is looking for the mysql.sock file in the wrong place. Just need to create a symlink and you should be in business: sudo mkdir /var/mysql/ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/" title="Fix the MySQL PHP issue in Leopard (mysql.sock file)"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p><span class="postbody">This is a known issue in Leopard, basically the system is looking for the mysql.sock file in the wrong place. Just need to create a symlink and you should be in business:</p>
<p>sudo mkdir /var/mysql/<br />
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

