<?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>Ahmed Tawfik &#187; php</title>
	<atom:link href="http://www.ahmedtawfik.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ahmedtawfik.com</link>
	<description>Life is a big school</description>
	<lastBuildDate>Wed, 14 Sep 2011 10:24:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Senior Developers JAVA and PHP LAMP Developers Required</title>
		<link>http://www.ahmedtawfik.com/php/senior-developers-jsp-and-php-lamp-developers-required/</link>
		<comments>http://www.ahmedtawfik.com/php/senior-developers-jsp-and-php-lamp-developers-required/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 10:31:45 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[Lampp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ahmedphp.com/?p=787</guid>
		<description><![CDATA[Dear Senior Developers, Required for work on a big system 1. JAVA Developers 2. LAMP Developers 3. Mobile Developer Only people that like being part of a team that helps each other should apply. If you are interested, Please submit your resume/CV  to : ahmed.php@gmail.com. Related posts No related posts.]]></description>
			<content:encoded><![CDATA[<p>Dear Senior Developers,</p>
<p>Required for work on a big system</p>
<p>1. JAVA Developers<br />
2. LAMP Developers<br />
3. Mobile Developer</p>
<p>Only people that like being part of a team that helps each other should apply.<br />
If you are interested, Please submit your resume/CV  to : ahmed.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>@gmail.com.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/senior-developers-jsp-and-php-lamp-developers-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Apache2, MySQL5, PHP5 and PHPMyAdmin on Ubuntu</title>
		<link>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/</link>
		<comments>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 15:13:17 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command Lines]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.ahmedphp.com/?p=613</guid>
		<description><![CDATA[This is a collection of guide how to install Apache Httpd Web Server complete with latest PHP (as Apache mod), MySQL for Ubuntu. As a bonus, I even through in an additional guide to install PHPMyAdmin. Please do note that most of this guide can be found elsewhere which is listed at the bottom of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a collection of guide how to <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Httpd Web Server complete with latest <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> (as <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> mod), MySQL for Ubuntu. As a bonus, I even through in an additional guide to <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">PHPMyAdmin</a>. Please do note that most of this guide can be found elsewhere which is listed at the bottom of the guide.</p>
<p><span id="more-438"> </span></p>
<h3>Getting Started</h3>
<p>I’m sure everyone here is familiar on how to use Terminal which is available from:</p>
<pre>Applications > Accessories > Terminal</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Httpd Web Server</h3>
<p>To <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a>, type the following command into your Terminal:</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> apache2</pre>
<h4>Testing <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></h4>
<p>Paste the following command into your Terminal</p>
<pre>> sudo /etc/init.d/apache2 start</pre>
<p>Then open <code>http://localhost/</code> or <code>http://127.0.0.1</code> from your web browser. At first run, you would probably see a directory listing or a HTML page with a text saying “<strong>It’s Work</strong>“.</p>
<h1><em><strong><strong>It’s Work</strong></strong></em></h1>
<p><span id="more-613"></span><br />
To browse the file please navigate to the following folder</p>
<pre>> cd /var/www/</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></h3>
<p>Similar to <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a>, all you need to do is type the following command in your Terminal:</p>
<pre lang="bash">> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> php5 libapache2-mod-php5</pre>
<p>After the installation is complete, do restart your <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Http Web Server.</p>
<pre lang="bash">> sudo /etc/init.d/apache2 start</pre>
<p>This allow <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> to be include as <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> mod.</p>
<h4>Testing <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></h4>
<p>A simple way to test your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> is via phpinfo() function which display all related configuration of your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a>. To do so type the following command in your Terminal.</p>
<pre>> sudo gedit /var/www/phpinfo.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></pre>
<p>This will open gEdit text editor which you will type in</p>
<div>
<ol>
<li><span><span><?php phpinfo(); ?> </span></span></li>
</ol>
</div>
<pre style="display: none;"><?php phpinfo(); ?></pre>
<p>Open http://localhost/phpinfo.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a> in your web browser and you will get something like this: <img class="aligncenter" title="phpinfo" src="http://www.ahmedphp.com/images/phpinfo.png" alt="" width="660" height="298" /></p>
<p>You should see all of the info about your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> installation listed on the page.</p>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> MySQL</h3>
<p>Again, type the following command in your Terminal</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> mysql-server</pre>
<p>Note: As MySQL is installing, it will ask you to configure your root password. Make sure that you type it correctly, as it will only ask you once.</p>
<p>You might need to manually start MySQL  for the first time, do so by typing this command in your Terminal.</p>
<pre>> sudo /etc/init.d/mysql start</pre>
<h4>Testing MySQL</h4>
<p>After that is finished, you can test MySQL by running this, where 123 is your password</p>
<pre>> mysql -uroot -p123
mysql> show databases;
mysql> quit</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">PHPMyAdmin</a></h3>
<p>As usual, run the following command in terminal</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></pre>
<p>This process is quite, as slow as MySQL installation and there are time you need to provide some information in order to complete the process but it quite optional. Once finish you need to create a soft link in <code>/var/www/</code> to <code>/usr/share/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></code> using these command.</p>
<pre>> sudo ln -s /usr/share/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a> /var/www/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></pre>
<p>Now open up <code>http://localhost/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a> </code>your web browser.</p>
<p>Copyright  crynobone.com</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ahmedtawfik.com/new/ubuntu/install-apache-2-mysql-5-php-5-phpmyadmin-for-linux-ubuntu/" title="Install Apache 2 , MySQL 5, PHP 5, phpMyAdmin for Linux Ubuntu (November 2, 2009)">Install Apache 2 , MySQL 5, PHP 5, phpMyAdmin for Linux Ubuntu</a> (0)</li>
	<li><a href="http://www.ahmedtawfik.com/apache/how-you-can-fix-this-problem/" title="How you can fix this problem (September 22, 2009)">How you can fix this problem</a> (5)</li>
	<li><a href="http://www.ahmedtawfik.com/php/%d8%aa%d9%82%d8%a7%d8%b1%d9%8a%d8%b1-2007/" title="تقارير 2007 عن لغات البرمجه (January 5, 2008)">تقارير 2007 عن لغات البرمجه</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use mod_rewrite to create clean URLs</title>
		<link>http://www.ahmedtawfik.com/php/how-to-use-mod_rewrite-to-create-clean-urls/</link>
		<comments>http://www.ahmedtawfik.com/php/how-to-use-mod_rewrite-to-create-clean-urls/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 10:58:45 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Mod_rewrite]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ahmedphp.com/?p=609</guid>
		<description><![CDATA[Learn how to remove cruft from your URLs and give yourself greater flexibility while making things much easier for visitors and search engines. Cruft and permalinks How many times have you seen URLs like this? http://example.com/weblog/index.php?y=2000&#38;m=11&#38;d=23&#38;id=5678 http://example.com/weblog/archive/00005678.html Horrible, aren&#8217;t they? They look ugly, contain meaningless information and are hard to decipher. Wouldn&#8217;t it be nice [...]]]></description>
			<content:encoded><![CDATA[<p>Learn how to remove cruft from your URLs and give yourself greater flexibility while making things much easier for visitors and search engines.</p>
<h3>Cruft and permalinks</h3>
<p>How many times have you seen URLs like this?</p>
<pre><code>http://example.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=2000&amp;m=11&amp;d=23&amp;id=5678

http://example.com/weblog/archive/00005678.html

</code></pre>
<p>Horrible, aren&#8217;t they? They look ugly, contain meaningless information and are  hard to decipher. Wouldn&#8217;t it be nice if you could have URLs like this?</p>
<pre><code>http://example.com/weblog/2000/11/23/example
</code></pre>
<p>That is surely much more meaningful. The hierarchy of the directory structure  makes it easy to infer what you&#8217;re likely to see on the page: a weblog entry  from 23rd November 2000 called ‘Example’.</p>
<p>Another problem is link rot. What happens when your URLs are several years old? Will they still work? What if you ditch <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> and rewrite your site in  Python, for example? All those URLs ending in <code>.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></code> will suddenly break, and  visitors who&#8217;ve found your site in a search engine won&#8217;t get what they  bargained for.</p>
<p>Yet another problem is that search engines often avoid URLs which contain the <code>?</code> character, because they are likely to be just one node in a large database which could leave the spider going round in circles for a long time. If your URLs take that form then this may be why you haven&#8217;t found yourself in Google.<span id="more-609"></span></p>
<h3>Using <code>mod_rewrite</code></h3>
<p>This is how I&#8217;ve solved the problem. The <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> web server has a module named <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html"><code>mod_rewrite</code></a>, which  allows you to create rules for rewriting requested URLs on the fly. This means  you can announce simple, clean URLs that your web server automatically converts  into an underlying format that only you need to know. Everyone looking at your  site will just get the tidy version.</p>
<p>You&#8217;ll need to edit a file called <code>.htaccess</code> at the top level of your web folder. This is where you can specify certain settings to control the way <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> accesses items in this folder and below.</p>
<p>First things first. Let&#8217;s turn on <code>mod_rewrite</code>:</p>
<pre><code>RewriteEngine On
</code></pre>
<p>This simply lets <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> know that you are going to want it to rewrite some  URLs. So let&#8217;s do just that, and create our first rule.</p>
<pre><code>RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a> [L]
</code></pre>
<p>This is a bit more complicated. It specifies a regular expression and then a rewrite format. It tells <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> to look for any incoming requests whose URL  matches the expression and to rewrite them accordingly. The <code>[L]</code> tells <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> that if this rule matches, it should consider it to be the last one and stop parsing here.</p>
<p>The rule matches any URL which is formed of lower case letters, followed by a <code>/</code>, then more lower case letters and/or hyphens, and appends <code>.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></code> to the  end. It keeps track of anything wrapped in brackets <code>()</code> and refers to them  later as $1 and $2, i.e. the first and second match. So if someone visits these  URLs:</p>
<pre><code>http://example.com/weblog/archive

http://example.com/etc/colophon

</code></pre>
<p>they will be converted, so that it will be as if they were:</p>
<pre><code>http://example.com/weblog/archive.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>

http://example.com/etc/colophon.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>

</code></pre>
<p>It&#8217;s as simple as that. What this means is that now nobody needs to know that we are using <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> to run the site. So if everything changes to Python at some point, we could change the rule to:</p>
<pre><code>RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.py [L]
</code></pre>
<p>replacing <code>.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></code> with <code>.py</code>, so the URLs would then be converted to:</p>
<pre><code>http://example.com/weblog/archive.py

http://example.com/etc/colophon.py

</code></pre>
<p>It&#8217;s limited only by your imagination. Here are some other rules I use to control access to my weblog:</p>
<pre><code>RewriteRule ^weblog/([0-9]{4})/([0-9]{2})/([0-9]{2})/([a-z0-9\-]+)$ /weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=$1&amp;m=$2&amp;d=$3&amp;n=$4 [L]
RewriteRule ^weblog/([0-9]{4})/([0-9]{2})/([0-9]{2})$ /weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=$1&amp;m=$2&amp;d=$3 [L]
RewriteRule ^weblog/([0-9]{4})/([0-9]{2})$ /weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=$1&amp;m=$2 [L]
RewriteRule ^weblog/([0-9]{4})$ /weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=$1 [L]
</code></pre>
<p>These mean that URLs like this:</p>
<pre><code>http://wettone.com/weblog/2000/01/01/example

http://wettone.com/weblog/2000/01/01

http://wettone.com/weblog/2000/01

http://wettone.com/weblog/2000

</code></pre>
<p>are automatically converted to:</p>
<pre><code>http://wettone.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=2000&amp;m=01&amp;d=01&amp;n=example

http://wettone.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=2000&amp;m=01&amp;d=01

http://wettone.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=2000&amp;m=01

http://wettone.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>?y=2000

</code></pre>
<p>This means I could drastically alter the way my weblog works — even  making it load a static HTML page for each day, month or year — and  nobody would be any the wiser. All the messy URLs stay behind the scenes and  the visitors only see the tidy URLs.</p>
<h3>No URL left behind</h3>
<p>What if you already have a web site which is already indexed in search engines? You can&#8217;t just change your URLs overnight because the old ones won&#8217;t exist any more. Or will they? There is a way round this with <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a>&#8217;s <code>RedirectMatch</code> keyword.</p>
<p>Older versions of my site had weblog URLs like these:</p>
<pre><code>http://wettone.com/weblog/2000_01.html

http://wettone.com/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>/2000/01

</code></pre>
<p>They have cropped up in search engines, so I want to make sure that visitors to my site get what they expected when they visit those URLs. I use these rules:</p>
<pre><code>RedirectMatch permanent ^/weblog/([0-9]{4})_([0-9]{2}).html$ /weblog/$1/$2
RedirectMatch permanent ^/weblog/index.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>/([0-9]{4})/([0-9]{2})$ /weblog/$1/$2
</code></pre>
<p>These tell the browser to redirect to the new-style URL. The <code>permanent</code> keyword lets the browser know that this is a permanent change and that they don&#8217;t need to try the old URL next time.</p>
<p>You can use this technique to make sure that nobody visiting your site sees a <code>404 Not Found</code> error. Over time, search engines will revisit your site to  find these redirections, and their indexes will be updated accordingly.</p>
<h3>For more information</h3>
<p>More in-depth documentation on the <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> modules is available on their site.</p>
<p><a href="http://httpd.apache.org/docs/mod/mod_rewrite.html"><code>mod_rewrite</code></a></p>
<p><a href="http://httpd.apache.org/docs/mod/mod_alias.html"><code>mod_alias</code></a></p>
<p><a href="http://httpd.apache.org/docs/misc/rewriteguide.html">URL Rewriting Guide</a></p>
<p>Copyright from here wettone.com</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/how-to-use-mod_rewrite-to-create-clean-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>أنتهت فتره الفحت والردم</title>
		<link>http://www.ahmedtawfik.com/what-happened-to-me-today/%d9%81%d8%aa%d8%b1%d8%a9-%d9%81%d8%ad%d8%aa-%d9%88%d8%b1%d8%af%d9%85/</link>
		<comments>http://www.ahmedtawfik.com/what-happened-to-me-today/%d9%81%d8%aa%d8%b1%d8%a9-%d9%81%d8%ad%d8%aa-%d9%88%d8%b1%d8%af%d9%85/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 07:18:50 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[Egypt]]></category>
		<category><![CDATA[Rjem X Rjem]]></category>
		<category><![CDATA[What happened to me today]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.AhmedPHP.com/?p=180</guid>
		<description><![CDATA[والله يا جماعه الفتره القادمه فترة فحت وردم بجد يعنى ايه يعنى اجازه من العمل فى اول شهر 5 توقف كل شئ حتى الانتهاء من مرحلة الامتحانات حتى نتجاوز هذه المرحلة الصعبة تم توقف كورس الانجليزى حين الانتهاء من الامتحانات والبدء انشاء الله بعد الامتحانات الانتهاء من جميع الاعمال الخارجية والتوقف حتى تجاوز هذه المرحلة [...]]]></description>
			<content:encoded><![CDATA[<p>والله يا جماعه الفتره القادمه فترة فحت وردم بجد يعنى ايه يعنى اجازه من العمل فى اول شهر 5 توقف كل شئ حتى الانتهاء من مرحلة الامتحانات حتى نتجاوز هذه المرحلة الصعبة تم توقف كورس الانجليزى حين الانتهاء من الامتحانات والبدء انشاء الله بعد الامتحانات الانتهاء من جميع الاعمال الخارجية والتوقف حتى تجاوز هذه المرحلة الصعبة التى لا اعرف منها سوى معاد الامتحان والحمد الله ربنا يستر بس ادعولى بقى اشفكم بعد الفاصل الطويل والعوده بافكار واشياء جديدة انشاء الله</p>
<p><span style="color: #ff0000; font-size: x-small;"><strong>قرار ولكن مش من الوزير أو نابع من رئيس الجمهورية بالتوقف عن كتابة المواضيع البعيدة عن التقنيات والبرمجة سوف أغير نظام الكتابة والتصميم , ولكن احتمال مش اكيد جارى التفكير فى تحويل كتابة المواضيع باللغة الانجليزية بعد الانتهاء من فترة الامتحانات انشاء الله</strong> </span></p>
<p><span style="color: #ff0000; font-size: x-small;"><strong>The Next Post About <span style="color: #000000;"> The future of <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span> !!!!!</strong> </span></p>
<p>انتهت فتره الفحت ولم يتبقى سوى 4 أيام على زمة امتحانات العملى</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/what-happened-to-me-today/%d9%81%d8%aa%d8%b1%d8%a9-%d9%81%d8%ad%d8%aa-%d9%88%d8%b1%d8%af%d9%85/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>تقارير 2007 عن لغات البرمجه</title>
		<link>http://www.ahmedtawfik.com/php/%d8%aa%d9%82%d8%a7%d8%b1%d9%8a%d8%b1-2007/</link>
		<comments>http://www.ahmedtawfik.com/php/%d8%aa%d9%82%d8%a7%d8%b1%d9%8a%d8%b1-2007/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 15:21:52 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ahmedphp.com/AhmedTawfik/145.html</guid>
		<description><![CDATA[The long term trends for the first 10 programming languages can be found in the line diagram below. Position Dec 2007 Position Dec 2006 Delta in Position Programming Language Ratings Dec 2007 Delta Dec 2006 Status 1 1 Java 20.049% +0.14% A 2 2 C 13.173% -3.44% A 3 4 (Visual) Basic 10.219% +1.31% A [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: small;"><strong>The long term trends for the first 10 programming languages can be found in the line diagram below.</strong> </span> </span></p>
<p><span id="more-145"></span><br />
<img src="http://www.tiobe.com/tiobe_index/images/tpci_trends.png" border="0" alt="" width="600" /></p>
<p><img src="http://www.tiobe.com/tiobe_index/images/history_PHP.png" border="0" alt="" width="600" /></p>
<table class="ttable" border="1" align="center">
<colgroup></colgroup>
<col align="center"></col>
<col align="center"></col>
<col align="center"></col>
<col></col>
<col align="center"></col>
<col align="center"></col>
<col align="center"></col>
<tbody>
<tr>
<th align="center"> Position<br />
Dec 2007</th>
<th align="center">Position<br />
Dec 2006</th>
<th align="center">Delta in Position</th>
<th align="center">Programming Language</th>
<th align="center">Ratings<br />
Dec 2007</th>
<th align="center">Delta</p>
<p>Dec 2006</th>
<th align="center">Status</th>
</tr>
<tr height="25">
<td align="center">1</td>
<td align="center">1</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="Java.html">Java</a></td>
<td align="center">20.049%</td>
<td align="center">+0.14%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">2</td>
<td align="center">2</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="C.html">C</a></td>
<td align="center">13.173%</td>
<td align="center">-3.44%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">3</td>
<td align="center">4</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="(Visual)_Basic.html">(Visual) Basic</a></td>
<td align="center">10.219%</td>
<td align="center">+1.31%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">4</td>
<td align="center">5</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="PHP.html">PHP</a></td>
<td align="center">8.393%</td>
<td align="center">-0.14%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">5</td>
<td align="center">3</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /></td>
<td><a href="C__.html">C++</a></td>
<td align="center">7.871%</td>
<td align="center">-2.54%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">6</td>
<td align="center">7</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="Python.html">Python</a></td>
<td align="center">4.697%</td>
<td align="center">+0.93%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">7</td>
<td align="center">6</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /></td>
<td><a href="Perl.html">Perl</a></td>
<td align="center">4.383%</td>
<td align="center">-2.01%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">8</td>
<td align="center">8</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="C_.html">C#</a></td>
<td align="center">3.994%</td>
<td align="center">+0.82%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">9</td>
<td align="center">11</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="Ruby.html">Ruby</a></td>
<td align="center">3.089%</td>
<td align="center">+0.76%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">10</td>
<td align="center">10</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="JavaScript.html">JavaScript</a></td>
<td align="center">2.733%</td>
<td align="center">+0.17%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">11</td>
<td align="center">9</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /></td>
<td><a href="Delphi.html">Delphi</a></td>
<td align="center">2.673%</td>
<td align="center">+0.10%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">12</td>
<td align="center">14</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="D.html">D</a></td>
<td align="center">1.633%</td>
<td align="center">+0.66%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">13</td>
<td align="center">13</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="PL_SQL.html">PL/SQL</a></td>
<td align="center">1.394%</td>
<td align="center">+0.05%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">14</td>
<td align="center">12</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /></td>
<td><a href="SAS.html">SAS</a></td>
<td align="center">1.393%</td>
<td align="center">-0.84%</td>
<td align="left">A</td>
</tr>
<tr height="25">
<td align="center">15</td>
<td align="center">18</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="COBOL.html">COBOL</a></td>
<td align="center">0.894%</td>
<td align="center">+0.29%</td>
<td align="left">A-</td>
</tr>
<tr height="25">
<td align="center">16</td>
<td align="center">15</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Down.gif" border="0" alt="" /></td>
<td><a href="ABAP.html">ABAP</a></td>
<td align="center">0.875%</td>
<td align="center">-0.03%</td>
<td align="left">A-</td>
</tr>
<tr height="25">
<td align="center">17</td>
<td align="center">17</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="Lisp_Scheme.html">Lisp/Scheme</a></td>
<td align="center">0.841%</td>
<td align="center">+0.20%</td>
<td align="left">A-</td>
</tr>
<tr height="25">
<td align="center">18</td>
<td align="center">20</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="Transact-SQL.html">Transact-SQL</a></td>
<td align="center">0.817%</td>
<td align="center">+0.35%</td>
<td align="left">A&#8211;</td>
</tr>
<tr height="25">
<td align="center">19</td>
<td align="center">19</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Same.gif" border="0" alt="" /></td>
<td><a href="Pascal.html">Pascal</a></td>
<td align="center">0.791%</td>
<td align="center">+0.23%</td>
<td align="left">A&#8211;</td>
</tr>
<tr height="25">
<td align="center">20</td>
<td align="center">46</td>
<td align="center"><img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /> <img src="http://www.tiobe.com/tiobe_index/images/Up.gif" border="0" alt="" /></td>
<td><a href="Lua.html">Lua</a></td>
<td align="center">0.771%</td>
<td align="center">+0.67%</td>
<td align="left">A-</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;"><strong>vb البى اتش بى تحتل المركز الرابع والغريب فى الامر ان<br />
تحتل المركز الثالث تعالوا نشوف المصدر من <a href="http://www.tiobe.com/tpci.htm"> هنا </a> ونتاكد بنفسنا<br />
شوف باقى الموضوع وأنت هتعرف بنفسك<br />
</strong> </span></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/" title="Install Apache2, MySQL5, PHP5 and PHPMyAdmin on Ubuntu (September 20, 2009)">Install Apache2, MySQL5, PHP5 and PHPMyAdmin on Ubuntu</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/%d8%aa%d9%82%d8%a7%d8%b1%d9%8a%d8%b1-2007/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>joomla</title>
		<link>http://www.ahmedtawfik.com/php/joomla/</link>
		<comments>http://www.ahmedtawfik.com/php/joomla/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 06:43:29 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ahmedphp.com/?p=143</guid>
		<description><![CDATA[اسكربت اكثر من رائع وسوف اشرح بالتفصيل الممل كيفيه استخدامه واخراج ماتحب من مواقع من هذا البرنامج وسوف اكمل الكلام عليه فى الايام المقبلة انشاء الله joomla أليكم بعض الامثله حتى الانتهاء من شرح طريقه اخراج مثل هذه المواقع من zuuoffice Supportmisr Carriage zuumedia Amina وانشاء الله دى حاجه كدا تصبيره كدا لحد لما اخلص [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.joomla.com/"><img src="http://tbn0.google.com/images?q=tbn:Zx8oQEq64wHn5M:http://www.donax.ch/nbo/gull/pix/Joomla_Logo_Vert_Color_Slogan.png" border="0" alt="joomla" width="138" height="87" /> </a><br />
اسكربت اكثر من رائع وسوف اشرح بالتفصيل الممل كيفيه استخدامه واخراج ماتحب من مواقع من هذا البرنامج وسوف اكمل الكلام عليه فى الايام المقبلة انشاء الله<br />
joomla أليكم بعض الامثله حتى الانتهاء من شرح طريقه اخراج مثل هذه المواقع من<br />
<span id="more-143"></span><br />
<a href="http://www.zuuoffice.com/ait">zuuoffice</a><br />
<a href="http://www.supportmisr.com">Supportmisr</a><br />
<a href="http://nativespace-mercury.ns-mercury.com/~carriage/index.php">Carriage</a><br />
<a href="http://www.zuumedia.com/">zuumedia</a><br />
<a href="http://amina-finelinen.com/">Amina</a><br />
<strong>وانشاء الله دى حاجه كدا تصبيره كدا لحد لما اخلص الشرح او طريقة الاستخدام</strong> </span> </span></p>
<p><span style="font-size: small;"><strong>فيديو كدا بسيط لتتعرف على الاسكربت والشرح بالعربى فى الطريق انا جااااااااااى</strong></p>
<p><strong>Installing Joomla</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="355" width="425" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/kvx_P0IQqdc&amp;rel=1" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/kvx_P0IQqdc&amp;rel=1" height="355" width="425" src="http://www.youtube.com/v/kvx_P0IQqdc&amp;rel=1" wmode="transparent" type="application/x-shockwave-flash"></embed></object></p>
<p><strong>Discover Joomla CMS!</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="355" width="425" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/kmpyUfmXMb8&amp;rel=1" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/kmpyUfmXMb8&amp;rel=1" height="355" width="425" src="http://www.youtube.com/v/kmpyUfmXMb8&amp;rel=1" wmode="transparent" type="application/x-shockwave-flash"></embed></object></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/joomla/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>دعوه للمبرمجين فقط</title>
		<link>http://www.ahmedtawfik.com/php/%d8%af%d8%b9%d9%88%d9%87-%d9%84%d9%84%d9%85%d8%a8%d8%b1%d9%85%d8%ac%d9%8a%d9%86-%d9%81%d9%82%d8%b7/</link>
		<comments>http://www.ahmedtawfik.com/php/%d8%af%d8%b9%d9%88%d9%87-%d9%84%d9%84%d9%85%d8%a8%d8%b1%d9%85%d8%ac%d9%8a%d9%86-%d9%81%d9%82%d8%b7/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 20:00:50 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ahmedphp.com/?p=138</guid>
		<description><![CDATA[دعوه للمبرمجين الذين حضروا فى الدعوه السابقه فقط يوم الجمعه القادمة الموافق 16/11/2007 للنقاش فى امور برمجيه وامور متفق عليها سابقا 5:00PM : الساعه المكان :فى قهوه المشربية بالحى السابع مدينه نصر والخريطه مرفقه لمن يصعب عليه الوصول من هنا الخريطه للوصول سريعأ واتمنى انى مكنش نسيت حاجه اسبكم بقى علشان وريا شغل Related posts [...]]]></description>
			<content:encoded><![CDATA[<p>دعوه للمبرمجين الذين حضروا فى الدعوه السابقه فقط يوم الجمعه القادمة الموافق 16/11/2007 للنقاش فى امور برمجيه وامور متفق عليها سابقا<br />
 5:00PM : الساعه<br />
المكان :فى قهوه المشربية بالحى السابع مدينه نصر والخريطه مرفقه لمن يصعب عليه الوصول<br />
<a href="http://www.wikimapia.org/#lat=30.039652&#038;lon=31.339268&#038;z=18&#038;l=0&#038;m=a&#038;v=2">من هنا الخريطه للوصول سريعأ</a><br />
واتمنى انى مكنش نسيت حاجه اسبكم بقى علشان وريا شغل</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/%d8%af%d8%b9%d9%88%d9%87-%d9%84%d9%84%d9%85%d8%a8%d8%b1%d9%85%d8%ac%d9%8a%d9%86-%d9%81%d9%82%d8%b7/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP كيفيه عمل ملف</title>
		<link>http://www.ahmedtawfik.com/php/php-%d9%83%d9%8a%d9%81%d9%8a%d9%87-%d8%b9%d9%85%d9%84-%d9%85%d9%84%d9%81/</link>
		<comments>http://www.ahmedtawfik.com/php/php-%d9%83%d9%8a%d9%81%d9%8a%d9%87-%d8%b9%d9%85%d9%84-%d9%85%d9%84%d9%81/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 16:16:44 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ahmedphp.com/?p=89</guid>
		<description><![CDATA[ملفات PHP هي ملفات نصية بسيطة، تشبه في تركيبها ملفات ASP وملفات HTML بشكل عام يمكنك الان تكمله الدرس فى الصفحه التاليه يتكون ملف PHP من قسمان، قسم HTML وقسم PHP الملف بالصورة الطبيعية عبارة عن ملف HTML عادي، ولكنك تستطيع تحديد أجزاء معينة من الملف ليخرج فيها الملف من وضعية HTML إلى وضعية PHP، [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed" align="left"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 10pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> هي ملفات نصية بسيطة، تشبه في تركيبها ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">ASP</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> وملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">HTML</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> بشكل عام </span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed" align="left"><strong>يمكنك الان تكمله الدرس فى الصفحه التاليه</strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed" align="left"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"></span></strong><span id="more-89"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><strong><span style="color: red">يتكون ملف </span></strong></span><strong><span dir="ltr" style="font-size: 9pt; font-family: Tahoma; color: red"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span></strong><strong><span style="font-size: 9pt; font-family: Tahoma; color: red" lang="AR-SA"><span dir="rtl"></span> من قسمان، قسم </span></strong><strong><span dir="ltr" style="font-size: 9pt; font-family: Tahoma; color: red">HTML</span><span dir="rtl"></span></strong><strong><span style="font-size: 9pt; font-family: Tahoma; color: red" lang="AR-SA"><span dir="rtl"></span> وقسم </span></strong><strong><span dir="ltr" style="font-size: 9pt; font-family: Tahoma; color: red"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed" align="left"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">الملف بالصورة الطبيعية عبارة عن ملف </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">HTML</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> عادي، ولكنك تستطيع تحديد أجزاء معينة من الملف ليخرج فيها الملف من وضعية </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">HTML</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> إلى وضعية </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، لإخراج الملف إلى وضعية </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> توجد عدة طرق : <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 3.75pt 18pt 3.75pt 4.5pt; text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">1 -<span>  </span>استخدام زوح الوسوم <?</span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">php</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> و ?> كالتالي : </span><span style="font-size: 9pt" lang="AR-SA"><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 0cm 21.25pt 0.0001pt 4.5pt; background: #ccffff none repeat scroll 0% 50%; text-align: left; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; direction: rtl; unicode-bidi: embed" align="right"><strong><span dir="ltr"></span><span dir="ltr" style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt"><span dir="ltr"></span><?php<o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 0cm 21.25pt 0.0001pt 4.5pt; background: #ccffff none repeat scroll 0% 50%; text-align: left; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; direction: rtl; unicode-bidi: embed" align="right"><strong><span dir="ltr" style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt"><span>                        print</span> &#8216;Ahmed Tawfik Hafez&#8217;;<o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 0cm 21.25pt 0.0001pt 4.5pt; background: #ccffff none repeat scroll 0% 50%; text-align: left; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; direction: rtl; unicode-bidi: embed" align="right"><strong><span dir="ltr" style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">?></span><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt" lang="AR-SA"><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 0.75pt 21.25pt 0.75pt 0.75pt; text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">2 &#8211; استخدام زوج المختصر <? و ?> وهو يستخدم بنفس الطريقة السابقة ولكنه يكون بدون الكلمة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> في وسم البداية، هذا النوع من الوسوم يحتاج إلى كمية أقل من الكتابة بالطبع، ولكنه يتعارض مع وسوم </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">xml</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، لذا يقوم البعض بإغلاق ميزة الوسوم القصيرة حتى لا يحصل هذا التعارض ( يمكنك اغلاق هذه الميزة بسهولة عن طريق ملف إعدادات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> ). </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 0.75pt 21.25pt 0.75pt 0.75pt; text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>3 &#8211; استخدام زوج الوسوم </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">ASP</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، وهو من اسمه زوج الوسوم المستخدم في ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">ASP</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> وهما <% و %>، ميزة وسوم </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">ASP</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> لا تكون فعالة بشكل قياسي ولكنك تستطيع تفعيلها عن طريق ملف إعدادات مترجم </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>. <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">أفضل الطرق  للتحويل إلى وضعية </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> هو استخدام زوج الوسوم الأول بالطبع، حيث أنه الأكثر استخدامها، ولا يحتوي على أية تعارضات كما أنه يعمل على جميع مترجمات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> مهما كانت إعداداتها، ولهذا السبب سنستخدمها في جميع الأمثلة التي ستجدها في هذه الدورة. <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: right; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma; color: red" lang="AR-SA">كتابة ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma; color: red"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span style="font-size: 9pt; font-family: Tahoma; color: red" lang="AR-SA"><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> هي ملفات نصية بسيطة تماما كما هي ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">HTML</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، يمكنك كتابة سكريبت </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> بأي برنامج كتابة نصوص يتيح لك كتابة الملفات النصية البسيطة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Plain Text</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> مثل </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> على النظام ويندوز، ولكن أغلبية مبرمجي </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> يستخدمون أدوات أخرى تسهل عليهم عملية البرمجة عن طريق تلوين الشفرات البرمجية، وتسهل عملية البحث عن الملفات واستبدال المقاطع من عدة ملفات في نفس الوقت، مثل </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">HomeSite</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، على الرغم من أنك لن تحتاج إلى الكثير من هذه الميزات إلا أن استخدام </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> في عمل ملفات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> يعتبر أمرا صعبا جدا وخاصة في الملفات الضخمة حيث أن </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> لا تتيح فتح الملفات الكبيرة، والمشكلة الأكبر هي أنها لا توفر ترقيما للأسطر، فإذا ظهرت لك رسالة الخطأ تشير إلى وجود خطأ في السطر 53 فلن تستطيع معرفة السطر المطلوب في </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> إلا إذا قمت بالعد يدويا من السطر الأول وحتى 53 .. حسنا ماذا لو كان الخطأ في السطر 652، يمكنك البدأ بكتابة سكريبتاتك بالبرنامج المتوفر الآن إلى أن تحصل على برنامج آخر، يمكنك بالطبع فتح ملفاتك بأي محرر نصوص، فإذا كتبتها باستخدام </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> فهذا لا يعني بأنك ملزم باستخدام </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Notepad</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> في جميع ملفاتك أو حتى في هذا الملف. <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">لعمل ملف </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> الآن قم بفتح محرر النصوص الذي اخترته وابدأ بكتابة الصفحة التي تريدها، ولا تنسى إحاطة شفرات </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> بالوسوم الخاصة بها، ثم احفظ الملف في أي مكان في دليل مزود الويب الخاص بك وأعطه الإمتداد المناسب .</span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> أو .</span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">php3</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> حسب إعدادات مزودك، ثم قم بزيارة الصفحة باستخدام المتصفح وستجد الصفحة وقد تمت ترجمتها وعرضها عليك. <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">تذكر بأنك يجب أن تزور الصفحة مرور بمزود الويب، ولا يمكنك عرض الصفحة عن طريق فتحها كملف خارجي، على سبيل المثال، إذا كان الدليل الجذري لصفحات مزودك هو : </span><span dir="ltr" style="font-size: 9pt">C:\httpd\ </span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">وقمت بعمل صفحة أسميتها </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">test.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> في ذلك الدليل، يجب أن تقوم الآن بتشغل مزود الويب وزيارة الصفحة على العنوان <a href="http://localhost/test.php"><span dir="ltr" style="color: #0066ff" lang="EN-US">http://localhost/test.php</span></a><span dir="rtl"></span><span dir="rtl"></span>، إذا قمت باستخدام الأمر </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">Open</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> من القائمة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">File</span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> في المتصفح لفتح الملف </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma">C:\httpd\test.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> فلن ترى صفحة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> مترجمة، وسترى شفرة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> فقط. <o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: right; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma; color: red" lang="AR-SA">تدريب<o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 3.75pt; text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">قم بتنفيذ ملف </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span> التالي : </span><span style="font-size: 9pt" lang="AR-SA"><o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">This is the normal html page.<br /><o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt"><?php<o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt"><span>                   </span>print &#8220;a.t.w<br />&#8220;;<o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt"><span>             print</span> &#8220;Hello World!<br />&#8220;;<o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">?><o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="margin: 3.75pt; text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">ما الذي تشاهده عند تنفيذ البرنامج السابق؟ من المفترض أن تشاهد الخرج التالي : </span><span dir="ltr" style="font-size: 9pt"><o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">This is the normal html page.<o:p></o:p></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">a.t.w</span></strong></p>
<p class="MsoNormal" style="margin: 0cm 3.75pt 0.0001pt; background: #ccffff none repeat scroll 0% 50%; line-height: 18pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><strong><span style="background: #f8f8f8 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 9pt">Hello World!<o:p></o:p></span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt; direction: rtl; unicode-bidi: embed"><strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA">ها قد انتهيت من كتابة برنامجك الأول بلغة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><span dir="rtl"></span>، لا تقلق إذا لم تفهم أي شيء فيه، سنتعلم الآن كيفية استخدام المتغيرات والعبارات بلغة </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span><span dir="rtl"></span></strong><span style="font-size: 9pt; font-family: Tahoma" lang="AR-SA"><strong><span dir="rtl"></span>.</strong> </span><span dir="ltr" style="font-size: 9pt; font-family: Tahoma"><o:p></o:p></span></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/php-%d9%83%d9%8a%d9%81%d9%8a%d9%87-%d8%b9%d9%85%d9%84-%d9%85%d9%84%d9%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php مقدمه عن لغه</title>
		<link>http://www.ahmedtawfik.com/php/php-%d9%85%d9%82%d8%af%d9%85%d9%87-%d8%b9%d9%86-%d9%84%d8%ba%d9%87/</link>
		<comments>http://www.ahmedtawfik.com/php/php-%d9%85%d9%82%d8%af%d9%85%d9%87-%d8%b9%d9%86-%d9%84%d8%ba%d9%87/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 06:50:31 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ahmedphp.com/?p=88</guid>
		<description><![CDATA[قررت بينى وبين نفسى ان اوضح لبعض الاشخاص الذين لا يعلمون ماهى هذه اللغه وما فائدتها وخواصها ان اعطى لهم مقدمه عن هذه اللغه ولمن يحب المتابعه سوف اقوم بوضع بعض الدروس للاستفاده فى برمجه الويب ولغه php  وترقبوا منى المزيد انشاء الله سوف اقوم معكم باذن الله بتمنيه قدرات من يريد تعلم هذه اللغه [...]]]></description>
			<content:encoded><![CDATA[<p align="right"><strong>قررت بينى وبين نفسى ان اوضح لبعض الاشخاص الذين لا يعلمون ماهى هذه اللغه وما فائدتها وخواصها ان اعطى لهم </strong><strong>مقدمه عن </strong><strong>هذه اللغه ولمن يحب المتابعه سوف اقوم بوضع بعض الدروس للاستفاده فى برمجه الويب ولغه</strong></p>
<p align="center"><strong><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>  </strong></p>
<p align="right">  <strong>وترقبوا منى المزيد انشاء الله سوف اقوم معكم باذن الله بتمنيه قدرات من يريد تعلم هذه اللغه وبرمجه الويب انشاء الله</strong></p>
<p align="right"><span id="more-88"></span></p>
<p align="right">&nbsp;</p>
<p align="right"><strong>تتميز لغة</strong> <strong><span style="font-family: Arial" lang="AR-SA"> بالكثير من الخصائص التي جعلتها الخيار الأمثل لمبرمجي الويب في العالم</span></strong></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">السهولة</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">تعتبر لغة </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> من أسهل لغات البرمجة تعلما، فهي تريحك من جميع تعقيدات إدارة الذاكرة وتعقيدات معالجة النصوص الموجودة في </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> من جهة، والكثير من الضعف الموجود في بينية وتصميم لغة البرمجة </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> من جهة أخرى. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p><strong><span style="font-family: Arial" lang="AR-SA">تلك لغة </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بنية وقواعدا ثابته وواضحة جدا، معظم قواعد اللغة مأخوذة من كل من </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> و </span></strong><strong><span dir="ltr" style="font-family: Arial">Java</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> و </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لصنع لغة برمجة عالية السهولة والسلاسة دون فقدان أي من القوة في اللغة، يفيدك ذلك إذا كنت تعلم أي شيء عن لغات البرمجة الأخرى مثل </span></strong><strong><span dir="ltr" style="font-family: Arial">Visual Basic</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أو </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أو </span></strong><strong><span dir="ltr" style="font-family: Arial">Java</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> حيث ستجد دائما بأنك تفهم مواد الدورة بسرعة، وستكتشف كيف تقوم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بتسهيل أصعب الأمور وإذلال العقبات التي تواجه المبرمج حتى يتفرغ تماما للإبداع فقط، كل ما تفكر به تستطيع تنفيذه بلغة </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">السرعة</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">لغة </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> من اللغات المعروفة بسرعتها العالية في تنفيذ البرامج، وخاصة في الإصدارة الرابعة من المترجم، حيث تمت كتابة مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> من الصفر ليعطي أداءا في منتهى الروعة، كما أن لغة </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial"><span dir="rtl"></span> </span></strong><strong><span style="font-family: Arial" lang="AR-SA">مصممة أصلا كنواة لمترجم، بحيث يمكن أن تضع هذه النواة في عدة قوالب أو أغلفة لتعمل مع التقنيات المختلفة، فيمكنك تشغيل مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> كبرنامج </span></strong><strong><span dir="ltr" style="font-family: Arial">CGI</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مثلا، ولكن الأفضل هو إمكانية تركيب مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> على مزود </span></strong><strong><span dir="ltr" style="font-family: Arial">IIS</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> في صورة وحدة إضافية تضاف إلى المزود عن طريق دوال </span></strong><strong><span dir="ltr" style="font-family: Arial">ISAPI</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وتوجد نسخة أخرى منه تركب على مزود </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أيضا في صورة وحدة خارجية، وتوجد أيضا نسخة مخصصة للدمج مع شفرة مزود </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بحيث تصبح جزءا من برنامج </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> نفسه، وهي الطريقة الأكثر استخداما الآن في مزودات الويب التي تعمل على أنظمة </span></strong><strong><span dir="ltr" style="font-family: Arial">UNIX</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> وهي الطريقة التي تعطي أفضل أداء لمترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، حيث يصبح المترجم جزءا من المزود، وبالتالي فإنه سيكون محملا في الذاكرة بانتظار صفحات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> ليقوم بترجمتها وعرضها للزوار مباشرة دون التأخير الإضافي الذي تتطلبه برامج </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl/CGI</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مثلا حيث يجب أن يتم تشغيل مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مع كل زيارة للصفحة لترجمة الصفحة، ثم يتم إغلاق المترجم، ثم استدعاءه مجددا عند الزيارة الثانية وهكذا، وهذا يشكل فارقا كبيرا في المواقع ذات الضغط العالي بالذات، ويكون استخدام </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> حلا أفضل بكثير. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">المزايا</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p align="right"><strong><span style="font-family: Arial" lang="AR-SA">يأتي مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لوحده محملا بعدد هائل من الدوال الجاهزة الاستخدام في جميع المجالات، من دوال المعالجة الرياضية والحسابية إلى دوال الوصول إلى قواعد البيانات ومزودات </span></strong><strong><span dir="ltr" style="font-family: Arial">FTP</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، توفر لك دوال </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مثلا وصولا إلى مزودات البيانات </span></strong><strong><span dir="ltr" style="font-family: Arial">MySQL</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> و </span></strong><strong><span dir="ltr" style="font-family: Arial">PostgreSQL</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> و </span></strong><strong><span dir="ltr" style="font-family: Arial">MS SQL</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> و </span></strong><strong><span dir="ltr" style="font-family: Arial">Oracle</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> وغيرها من مزودات قواعد البيانات، وهنالك أيضا مجموعة من الدوال لمعالجة ملفات </span></strong><strong><span dir="ltr" style="font-family: Arial">XML</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، ودوال أخرى لإرسال واستقبال الملفات عن بعد باستخدام بروتوكول </span></strong><strong><span dir="ltr" style="font-family: Arial">FTP</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وهنالك مجموعة من الدوال لمعالجة وإنتاج الصور ديناميكيا وملفات </span></strong><strong><span dir="ltr" style="font-family: Arial">Flash</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> ديناميكيا، ناهيك عن جميع الدوال الخاصة بمعالجة النصوص والمصفوفات. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">التوافقية</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">كما قلنا سابقا، فعلى الرغم من أن هنالك الكثير من نسخ </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> التي يعمل كل منها في بيئة مختلفة، إلا أنها جميعا تشترك في النواة الأصلية التي تقوم بالمعالجة الحقيقة لملفات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لذا فإن جميع مترجمات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> تتصرف بنفس الطريقة فيما يتعلق بتنفيذ السكريبتات، فإذا كان السكريبت الذي عملته يعمل على نظام </span></strong><strong><span dir="ltr" style="font-family: Arial">Windows</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مع مزود </span></strong><strong><span dir="ltr" style="font-family: Arial">IIS</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> فيجب أن يعمل دون الحاجة لأية تغييرات عند نقله إلى مزود </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، بالطبع تظل بعض الأمور البسيطة جدا التي يوفرها بعض المزودات دون غيرها، ولكن جميع البرامج التي كتبتها منذ أن بدأت تعلمي للغة إلى الآن تعمل على جميع المزودات دون الحاجة لأي تغييرات، إضافة إلى ذلك فإن التغييرات التي حدثت باللغة الأساسية من الإصدارة الثالثة إلى الرابعة قليلة جدا، وأغلب التغييرات كانت في البنية التحتية للمترجم.</span></strong><span style="font-family: Arial" lang="AR-SA"> </span><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">الحماية</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">يوفر </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> الكثير من المزايا المتقدمة، ولكنه يوفر لك الطرق المناسبة لوضع الحدود على هذه المزايا، فيمكنك التحكم بعدد الإتصالات المسموحة بقاعدة البيانات مثلا، أو الحجم الأقصى للملفات التي يمكن إرسالها عبر المتصفح، أو السماح باستخدام بعض الميزات أو إلغاء استخدامها، كل هذا يتم عن طريق ملف إعدادات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> والذي يتحكم به مدير الموقع. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">قابلية التوسع</span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p align="right"><strong><span style="font-family: Arial" lang="AR-SA">يمكنك توسعة مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بسهولة وإضافة الميزات التي تريدها إليه بلغة </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وحيث أن الشفرة البرمجية للمترجم مفتوحة فإنك تستطيع تغيير ما تريده مباشرة لتحصل على النسخة التي تناسبك من المترجم، ويمكنك أيضا عمل الوحدات الإضافية التي تركب على المترجم لزيادة ميزاته والوظائف المبيته فيه، وفي قد قام فريق تطوير مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مسبقا بعمل هذه المهمة وتحويل كمية ضخمة من المكتبات المكتوبة بلغة </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> إلى مكتبات مخصصة لتضاف إلى المترجم، ومنها حصلنا على جميع الميزات التي تحدثنا عنها مثل الوصول إلى قواعد البيانات ومعالجة ملفات </span></strong><strong><span dir="ltr" style="font-family: Arial">XML</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="line-height: 18pt" align="right"><strong><span style="font-size: 16pt; font-family: Arial; color: green" lang="AR-SA">تاريخ </span></strong><strong><span dir="ltr" style="font-size: 16pt; font-family: Arial; color: green"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">بدأت </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> كمكتبة من الدوال تضاف على لغة </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لتسهل عمل برامج </span></strong><strong><span dir="ltr" style="font-family: Arial">CGI</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بلغة </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وبعد أن تلقى </span></strong><strong><span dir="ltr" style="font-family: Arial">Rasmus Lerdof</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بعض الاقتراحات بتحويلها إلى مترجم بسيط، قام بعمل ذلك المترجم وطرحه على الإنترنت وسماه </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أو </span></strong><strong><span dir="ltr" style="font-family: Arial">Personal Home Pages</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أي الصفحات الشخصية، فقد كان عبارة عن نسخة مصغرة من </span></strong><strong><span dir="ltr" style="font-family: Arial">Perl</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مع بعض الميزات الإضافية للويب، ثم أضاف إليه دعما لنماذج </span></strong><strong><span dir="ltr" style="font-family: Arial">HTML</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> وسماه </span></strong><strong><span dir="ltr" style="font-family: Arial">PHP2/FI</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، فقام مجموعة من المبرمجين بالعمل على مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> وأضافوا إليه واجهة تطبيقات برمجية </span></strong><strong><span dir="ltr" style="font-family: Arial">API</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لتسهيل عملية توسعته فأصبح لدينا </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> 3</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، بعد فترة من الزمن قامت شركة </span></strong><strong><span dir="ltr" style="font-family: Arial">Zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> للتقنيات بعمل مترجمها الخاص للغة والذي سمي </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> أيضا، وقد اتصف هذا المترجم بالسرعة العالية وقدراته المحسنة، وجمع مع مكتبات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> الأخرى لتكوين نواة المترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> الآن مقسم على قسمان: المترجم </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> ويتم تطويره على مزودات </span></strong><strong><span dir="ltr" style="font-family: Arial">CVS</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> الموجودة في موقع </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> والقسم الثاني يسمى </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> وهو عبارة عن المكتبات والدوال الأساسية التي تأتي مع البرنامج، يقوم مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> بقراءة الملفات ومعالجتها والتعامل مع المتغيرات وتنفيذ البرنامج وتوفير واجهة تطوير للتطبيقات </span></strong><strong><span dir="ltr" style="font-family: Arial">API</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> لتوسعة اللغة، أما </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> فتحتوي الآن على مكتبات مكتوبة بلغة </span></strong><strong><span dir="ltr" style="font-family: Arial">C</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> ومتوافقة مع واجهة التطبيقات التي يوفرها مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وبالتالي يعمل القسمان معا لتكوين مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span>، وعندما تزور <a href="http://www.arabbuilder.com/link.php?link=http://www.php.net/"><span style="color: #0066ff">موقع </span><span dir="ltr" style="color: #0066ff" lang="EN-US">PHP</span><span dir="rtl"></span><span style="color: #0066ff"><span dir="rtl"></span> الرسمي</span></a> الآن وتحصل على مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> جاهزا أو تحصل على الشفرة البرمجية الخاصة بك، فإنك تحصل على كل من مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial">zend</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> ومكتبات </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> معا. </span></strong><span lang="AR-EG"><o:p></o:p></span></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="right"><strong><span style="font-family: Arial" lang="AR-SA">تطور </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> تطورا مفاجئا في الفترة الأخيرة، وتشير إحصائيا </span></strong><strong><span dir="ltr" style="font-family: Arial">Net Craft</span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> إلى أن مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> هو أكثر وحدات مزود </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> انتشارات على الإنترنت، كما أن مترجم </span></strong><strong><span dir="ltr" style="font-family: Arial"><a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></span></strong><span dir="rtl"></span><strong><span style="font-family: Arial" lang="AR-SA"><span dir="rtl"></span> مركب على حوالي مليوني مزود ويب على الإنترنت</span></strong></p>
<p class="MsoNormal" dir="rtl" style="text-align: justify; line-height: 18pt" align="center"><strong><span style="font-family: Arial" lang="AR-SA"> </span></strong><strong>وفى النهايه اتمنى قد قدمت لكم بعض الشئ عن هذه اللغه وترقبوا منى المزيد انشاء الله سوف اقوم معكم باذن الله بتمنيه قدرات من يريد تعلم هذه اللغه وبرمجه الويب انشاء الله</strong><span lang="AR-EG"><o:p></o:p></span></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/php-%d9%85%d9%82%d8%af%d9%85%d9%87-%d8%b9%d9%86-%d9%84%d8%ba%d9%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

