<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-14519738</id><updated>2011-12-15T04:37:04.264+02:00</updated><title type='text'>Shreef : Working to be a good Developer ISA</title><subtitle type='html'>PHP, JavaScript, MySQL, Apache, Linux, C/C++ and C#</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-14519738.post-115137763933714071</id><published>2006-06-27T05:56:00.000+03:00</published><updated>2006-06-27T06:07:19.350+03:00</updated><title type='text'>bye bye BlogSpot</title><content type='html'>I have decided to stop writing any technical entries here . but now I have one blog contains my personal and technical blogs . you can visit it here -&gt; &lt;a href="http://shref1.spaces.msn.com"&gt;http://shref1.spaces.msn.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;c ya&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-115137763933714071?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/115137763933714071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=115137763933714071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/115137763933714071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/115137763933714071'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2006/06/bye-bye-blogspot.html' title='bye bye BlogSpot'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-114549114139564343</id><published>2006-04-20T00:52:00.000+02:00</published><updated>2006-04-20T02:14:30.390+02:00</updated><title type='text'>simple XML in php5</title><content type='html'>In php5 there is a new simple way to process or create XML files , It's the &lt;a href="http://php.net/simplexml"&gt;SimpleXML&lt;/a&gt;&lt;br /&gt;It's not the powerful or the best but it's the simplest and the best choice for working with simple xml files like RSS.&lt;br /&gt;&lt;br /&gt;here I will show you how you can read a RSS feed in simple steps with SimpleXML&lt;br /&gt;&lt;br /&gt;first, we will start a new Object that's takes the path of the XML file, we will read the arabic bbc news feed so we will use this url ( &lt;span style="color: rgb(255, 153, 102);"&gt;http://newsrss.bbc.co.uk/rss/arabic/news/rss.xml&lt;/span&gt; )&lt;br /&gt;&lt;br /&gt;&lt;div style="width: 20%; background-color: navy; color: white;" bold="" align="center"&gt; CODE&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);font-family:courier new;font-size:100%;"  &gt;$xml &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;= &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-family:courier new;font-size:100%;"  &gt;simple_xml_file&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;( '&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);font-family:courier new;font-size:100%;"  &gt;http://newsrss.bbc.co.uk/rss/arabic/news/rss.xml&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;' )  &lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;so now we have the file loaded into a new Object called &lt;span style="color: rgb(204, 102, 204);"&gt;$xml&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt; then we will loop through the file to get the values of the targeted elements&lt;br /&gt;&lt;br /&gt;&lt;div style="width: 20%; background-color: navy; color: white;" bold="" align="center"&gt; CODE&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;&lt;span style="color: rgb(0, 153, 0);"&gt;  foreach&lt;/span&gt; (&lt;/span&gt;&lt;span style="color: rgb(255, 153, 255);font-family:courier new;font-size:100%;" class="default"  &gt;$xml&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;-&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="default"  &gt;item &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;&lt;span style="color: rgb(0, 153, 0);"&gt;as&lt;/span&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 153, 255);font-family:courier new;font-size:100%;" class="default"  &gt;$news&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;)&lt;br /&gt;{&lt;br /&gt;    &lt;span style="color: rgb(153, 51, 153);"&gt;echo&lt;/span&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 153, 255);font-family:courier new;font-size:100%;" class="default"  &gt;$news&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;-&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="default"  &gt;title &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="keyword"  &gt;. &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="string"  &gt;'&lt;span style="color: rgb(102, 102, 204);"&gt;&lt;br /&gt;\n\r&lt;/span&gt;'&lt;/span&gt;&lt;span class="keyword"&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;there is simpler than that ?!&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-114549114139564343?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/114549114139564343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=114549114139564343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/114549114139564343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/114549114139564343'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2006/04/simple-xml-in-php5.html' title='simple XML in php5'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-114227008633260393</id><published>2006-03-13T17:13:00.000+02:00</published><updated>2006-03-13T19:14:46.370+02:00</updated><title type='text'>Story : Performance Phobia</title><content type='html'>I was working days ago on a web site requires some multi-sorting operations and other big operations in the same page . i didn't sleep well for three days, not because it's hard to be done, but because of the performance .&lt;br /&gt;i have a very crazy storys running in my head about other developers who was murdered by their clients because of the bad performance in their applications ... lol ,  i really got a - performance phobia - (you can imagine me setting there shivering and looking left and right with the sound of britney's song "crazy" in the background -&gt;[Monk2]).&lt;br /&gt;&lt;br /&gt;After suffering of that thoughts for days, i found my self ready to start the scarry part (testing the application).&lt;br /&gt; Oh my God, my brain telling me to be ready for a huge explosion. okay, I went to my IDE and started testing .&lt;br /&gt;&lt;br /&gt; -&gt; what is that??!!&lt;br /&gt;every thing is working well and there is no slow operations or high load and the big surprise is that there is no crazy men coming with guns  and shooting at me .. lol&lt;br /&gt;i know that there is other guys setting there and saying "hay buddy, test it on a server with 1000 requests min. and tell us the number of server explosions/second".&lt;br /&gt;yes, i did that and it worked fine too after some optimizations .&lt;br /&gt;&lt;br /&gt;but why I'm telling you that story ?!&lt;br /&gt;just to know that there is inner fears that's just lives in our minds only .&lt;br /&gt;&lt;br /&gt;so Imagine the best, plan what you want to do, know your challenges and don't allow that stupid fears to stop you.&lt;br /&gt;&lt;br /&gt;that's not only relates to programming and programmers, but relates to all the branches of your life.&lt;br /&gt;so try to live better .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;happy programming .... and happy life.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-114227008633260393?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/114227008633260393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=114227008633260393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/114227008633260393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/114227008633260393'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2006/03/story-performance-phobia.html' title='Story : Performance Phobia'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-113857845527561853</id><published>2006-01-30T00:25:00.000+02:00</published><updated>2006-01-30T01:47:35.333+02:00</updated><title type='text'>php as a templating system</title><content type='html'>some php programmers used to use templating systems like Smarty, phpbb templates or XTemplate to separate the php codes (the logic) from HTML (the view) .&lt;br /&gt;&lt;br /&gt;but php itself is a templating language , so using another templating language with it is a waste of this feature in php.&lt;br /&gt;&lt;br /&gt;so there is some projects trying to reclaim php to use it as a good templating system such like ( &lt;a href="http://www.phpsavant.com"&gt;Savant&lt;/a&gt; and &lt;a href="http://simplet.sourceforge.net/"&gt;SimpleT&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;i like Savant and you will find many samples and plugins on it's web site.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;but why i have to use something like Savant to do the same work ?!!&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;just as this will improve the performance of your application.&lt;br /&gt;&lt;br /&gt; &lt;strong&gt;in the other templating systems :&lt;/strong&gt;&lt;br /&gt;1- the code of the templating system will be compiled by the php interpreter on run time .&lt;br /&gt;2- the templating system will compile the templates .&lt;br /&gt;&lt;br /&gt;but with something like Savant you will have one cycle of compilations as we are using php itself for  control statments and place holders.&lt;br /&gt;&lt;br /&gt;so, are you going to use your templating system again?!!  ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-113857845527561853?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/113857845527561853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=113857845527561853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113857845527561853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113857845527561853'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2006/01/php-as-templating-system.html' title='php as a templating system'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-113269879393954937</id><published>2005-11-22T23:09:00.000+02:00</published><updated>2005-11-23T00:39:30.936+02:00</updated><title type='text'>Highlight my Code</title><content type='html'>I think you have seen many web sites highlighting their codes like this&lt;br /&gt;&lt;br /&gt;&lt;div style="font-size:110%;BORDER-RIGHT: #030687 1px solid; BORDER-TOP: #030687 1px solid; PADDING-LEFT: 5px; BORDER-LEFT: #030687 1px solid; BORDER-BOTTOM: #030687 1px solid"&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&amp;lt;?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000a0;"&gt;php &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="color:#000000;"&gt;include&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000a0;"&gt; &lt;/span&gt;&lt;span style="color:#c60000;"&gt;'me.php'&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;i&gt;&lt;span style="color:#ff8040;"&gt;//my name&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;$&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000a0;"&gt;name &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#0000a0;"&gt; &lt;/span&gt;&lt;span style="color:#c60000;"&gt;'ahmed'&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="color:#000000;"&gt;print&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000a0;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;$&lt;/span&gt;&lt;span style="color:#0000a0;"&gt;name&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;that's not a big problem when we can use some builte-in php functions like &lt;em&gt;&lt;span style="color:#000099;"&gt;&lt;a href="http://www.php.net/manual/en/function.highlight-string.php"&gt;highlight_string&lt;/a&gt; .&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;this function highlights php codes only, but what can i do to highlight codes from other languages like C#, C++, Java ...etc.&lt;br /&gt;i have found some tools can help you to work this out like &lt;a href="http://qbnz.com/highlighter/index.php"&gt;GeSHi&lt;/a&gt; and &lt;a href="http://pear.php.net/package/Text_Highlighter"&gt;pear::Text_Highlighter&lt;/a&gt;&lt;br /&gt;this two classes have the ability to highlight what ever you want of codes in simple steps.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;GeSHi&lt;/strong&gt; have a big number of already supported languages so i don't have to create it by myself again. Also i can add my custom language support like its sister in pear.&lt;a href="http://qbnz.com/highlighter/images/geshi.png"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; WIDTH: 200px; CURSOR: hand" alt="" src="http://qbnz.com/highlighter/images/geshi.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;IMO &lt;strong&gt;GeSHi &lt;/strong&gt;is faster and better as your languages information stored in php files but with &lt;strong&gt;Text_Highlighter &lt;/strong&gt;you will add this information in XML files.&lt;br /&gt;think about the used memory resources to read this file (big file) and the time of execution.&lt;br /&gt;may i'm wrong but i will leave you to test it your self.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-113269879393954937?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/113269879393954937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=113269879393954937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113269879393954937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113269879393954937'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/11/highlight-my-code.html' title='Highlight my Code'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-113243240754659048</id><published>2005-11-19T21:51:00.000+02:00</published><updated>2005-11-19T22:33:31.210+02:00</updated><title type='text'>play with SQLite</title><content type='html'>i was searching for any thing not very famous to play with, now i'm setting with &lt;span style="color:#ff6600;"&gt;&lt;strong&gt;SQLite&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;it's the new supported database engine in php5.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlite.org/"&gt;&lt;span style="color:#ff6600;"&gt;&lt;strong&gt;SQlite&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; has many &lt;a href="http://sqlite.org/different.html"&gt;features&lt;/a&gt; that's can make it better than many other database engines , but you &lt;a href="http://sqlite.org/whentouse.html"&gt;can't use it&lt;/a&gt; everywhere.&lt;br /&gt;&lt;a href="http://sqlite.org/sqlite.gif"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; WIDTH: 200px; CURSOR: hand" alt="" src="http://sqlite.org/sqlite.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;IMO it's good but using MySQL is better till now.&lt;br /&gt;just i wanted to push you to test it.&lt;br /&gt;&lt;br /&gt;bye&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-113243240754659048?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/113243240754659048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=113243240754659048' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113243240754659048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/113243240754659048'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/11/play-with-sqlite.html' title='play with SQLite'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-112787365499908722</id><published>2005-09-28T05:06:00.000+03:00</published><updated>2005-10-24T22:10:24.110+02:00</updated><title type='text'>MySQL 5 &amp; stored procedures</title><content type='html'>hi all,&lt;br /&gt;did you know that the first MySQL 5.0 Release Candidate is Available&lt;/a&gt; now ?!!&lt;br /&gt;yes, that's right and you can get it from &lt;a href="http://dev.mysql.com/downloads/mysql/5.0.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;i have recived the MySQL news letter 2 hours ago and iam so happy to see MySQL in a new style with its new features to be powerful enough to start the long way with Oracle, MS SQL and DB2 .&lt;br /&gt;may we have to wait another 3 years to see MySQL side by side with its competitors .&lt;br /&gt;&lt;br /&gt;but let's see the most useful features in that release:&lt;br /&gt;1- stored procedures (i like it so much) &lt;a href="http://photos1.blogger.com/blogger/6942/1316/1600/mysql.jpg"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/6942/1316/200/mysql.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;2- triggers&lt;br /&gt;3- views&lt;br /&gt;4- information schema (i was in need of that)&lt;br /&gt;5- Archive storage engine&lt;br /&gt;&lt;br /&gt;iam not a databases expert but i know the benefits of using the stored procedures in my applications and i want to thank tarik ibrahim as he was the first one who explained it to me .&lt;br /&gt;&lt;br /&gt;in a little words : stored procedures are as same as the normal functions in php or c/c++ but it's stored in the database.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff6600;"&gt;Ex.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;CREATE PROCEDURE &lt;span style="color:#333399;"&gt;&lt;strong&gt;get_data&lt;/strong&gt;&lt;/span&gt;(IN &lt;span style="color:#009900;"&gt;var1&lt;/span&gt; INTEGER)&lt;br /&gt;&lt;span style="color:#990000;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffcc66;"&gt;IF&lt;/span&gt; &lt;span style="color:#009900;"&gt;var1&lt;/span&gt; &gt;= 5 &lt;span style="color:#cc66cc;"&gt;THEN&lt;/span&gt;&lt;br /&gt;SELECT * FROM users WHERE id = &lt;span style="color:#009900;"&gt;var1&lt;/span&gt;;&lt;br /&gt;&lt;span style="color:#ff9966;"&gt;ELSE&lt;/span&gt;&lt;br /&gt;SELECT * FROM admin WHERE id = &lt;span style="color:#009900;"&gt;var1&lt;/span&gt;;&lt;br /&gt;&lt;span style="color:#ffcc66;"&gt;END IF&lt;/span&gt;;&lt;br /&gt;&lt;span style="color:#993300;"&gt;END&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;maybe it's not clear for some people but reading it again will make it familier to you and very simple.&lt;br /&gt;&lt;br /&gt;let's see what we can do with php:&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff6600;"&gt;Ex.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color:#cc0000;"&gt;$&lt;/span&gt;userID = 2 ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;$&lt;/span&gt;result = &lt;span style="color:#ff9900;"&gt;&lt;strong&gt;mysql_query&lt;/strong&gt;&lt;/span&gt;( &lt;span style="color:#6633ff;"&gt;'call get_data(' &lt;/span&gt;&lt;span style="color:#ff9900;"&gt;. &lt;/span&gt;&lt;span style="color:#990000;"&gt;$&lt;/span&gt;userID &lt;span style="color:#ff9966;"&gt;. &lt;/span&gt;&lt;span style="color:#6633ff;"&gt;')' &lt;/span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;there is more advanced ways to use stored procedures and many many reasons to make it your first choice.&lt;br /&gt;check &lt;a href="http://dev.mysql.com"&gt;dev.mysql.com&lt;/a&gt; for more and be ready to get the finished release soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-112787365499908722?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/112787365499908722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=112787365499908722' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112787365499908722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112787365499908722'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/09/mysql-5-stored-procedures.html' title='MySQL 5 &amp; stored procedures'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-112723652827146888</id><published>2005-09-20T20:11:00.000+03:00</published><updated>2005-09-20T20:24:23.680+03:00</updated><title type='text'>explaining my Nick name</title><content type='html'>for a year or more i had some problems about the spelling of my nick name and my last name&lt;br /&gt;you know my name : &lt;strong&gt;Ahmed&lt;/strong&gt; &lt;span style="color:#ff6600;"&gt;&lt;strong&gt;Shreef&lt;/strong&gt;&lt;/span&gt; not &lt;strong&gt;Ahmed&lt;/strong&gt; &lt;span style="color:#ff9900;"&gt;&lt;strong&gt;Shref &lt;a href="http://photos1.blogger.com/blogger/6942/1316/1600/shref_bo.jpg"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/6942/1316/200/shref_bo.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff9900;"&gt;Shref&lt;/span&gt;&lt;/strong&gt; is just used as a nick name on the internet, so it's clear now for all.&lt;br /&gt;&lt;br /&gt;by the way &lt;strong&gt;&lt;span style="color:#ff6600;"&gt;Omar Shreef&lt;/span&gt;&lt;/strong&gt; writing it in the same way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-112723652827146888?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/112723652827146888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=112723652827146888' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112723652827146888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112723652827146888'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/09/explaining-my-nick-name.html' title='explaining my Nick name'/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-112535227539385565</id><published>2005-08-30T00:50:00.000+03:00</published><updated>2005-09-16T00:48:27.400+03:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;strong&gt;I'm back again&lt;/strong&gt;&lt;/span&gt;                                                                                      &lt;br /&gt;&lt;br /&gt;hello all,&lt;br /&gt;i was summering for a week in a summer resort in Marsa-Matroh.&lt;br /&gt;it was very nice to spend all the days and nights on the beach breathing fresh air, fishing, reading programming books , chating and playing pool (beleardo) with a beautiful girls.&lt;br /&gt;&lt;br /&gt;but now i have to forget all that to continue with programming and learning new things if god wills.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-112535227539385565?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/112535227539385565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=112535227539385565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112535227539385565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112535227539385565'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/08/im-back-again-hello-all-i-was.html' title=''/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14519738.post-112177307146620442</id><published>2005-07-07T14:21:00.000+03:00</published><updated>2005-09-16T00:53:56.660+03:00</updated><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;the &lt;span style="color:#ff6600;"&gt;Hot &lt;/span&gt;Summer &amp; programming&lt;/span&gt;&lt;/strong&gt;                                       &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;hello friends&lt;br /&gt;&lt;br /&gt;mmm that's my first entry in the blog and i don't know what to say!&lt;br /&gt;okay any way i hope you are all have a sweet life what ever you are doing&lt;br /&gt;&lt;br /&gt;and may if you are a &lt;span style="color:#ff0000;"&gt;php programmer&lt;/span&gt; and have a knowledge of the &lt;span style="color:#ff6600;"&gt;OOP&lt;/span&gt; programming&lt;br /&gt;you will like to see my 2 new simple published &lt;span style="color:#cc6600;"&gt;classes&lt;/span&gt; on the &lt;a href="http://www.phpclasses.org/"&gt;phpclasses.org &lt;/a&gt;site&lt;br /&gt;okay check that link to see it and tell me what you think &lt;a href="http://www.phpclasses.org/browse/author/207834.html"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/6942/1316/1600/php.jpg"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/6942/1316/320/php.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;so i think that blog 'll be for the &lt;span style="color:#ff6600;"&gt;php&lt;/span&gt; programmers to day, haha !&lt;br /&gt;&lt;br /&gt;so have you seen the new beta release of &lt;a href="http://search.msn.com/results.aspx?q=php"&gt;php 5.1.0&lt;/a&gt; ?!&lt;br /&gt;any way i like &lt;span style="color:#ff6600;"&gt;php 5&lt;/span&gt; more than &lt;span style="color:#ff6600;"&gt;php 4&lt;/span&gt; as in the new version we have a big &lt;a href="http://search.msn.com/results.aspx?q=OO"&gt;OO&lt;/a&gt; tools and a simpler way for using &lt;a href="http://search.msn.com/results.aspx?q=XML"&gt;XML&lt;/a&gt; and &lt;span style="color:#ff6600;"&gt;web services&lt;/span&gt; .&lt;br /&gt;&lt;br /&gt;oh so have you seen the new security &lt;/a&gt;vulnerability of the &lt;a href="http://phpxmlrpc.sourceforge.net/"&gt;PHP XML-RPC library&lt;/a&gt;&lt;br /&gt;check it if you have used that library in your XML web service &lt;a href="http://www.gulftech.org/?node=research&amp;amp;article_id=00088-07022005"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;so now iam working hard to learn many things this summer and i hope to finish that realy in that summer&lt;br /&gt;like advanced &lt;span style="color:#cc9933;"&gt;OOP&lt;/span&gt; , &lt;span style="color:#cc9933;"&gt;C/C++&lt;/span&gt;, &lt;span style="color:#cc9933;"&gt;C#&lt;/span&gt; and &lt;span style="color:#cc9933;"&gt;Algorithms&lt;/span&gt;&lt;br /&gt;may iam dreaming or something like that but i 'll do my best&lt;br /&gt;&lt;br /&gt;and about the &lt;span style="color:#330099;"&gt;Alexandrian php group&lt;/span&gt; members i want to regard them all&lt;br /&gt;and i want to tell you that we will have a meeting soon so be ready guys.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;that's good so enjoy your summer and spend it in a useful things&lt;br /&gt;bye &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14519738-112177307146620442?l=shreef.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shreef.blogspot.com/feeds/112177307146620442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14519738&amp;postID=112177307146620442' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112177307146620442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14519738/posts/default/112177307146620442'/><link rel='alternate' type='text/html' href='http://shreef.blogspot.com/2005/07/hot-summer-programming-hello-friends.html' title=''/><author><name>Ahmed Shreef</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_h1HdUakQ-Sk/S8Qyn1JE6-I/AAAAAAAAABk/B-6Tl09fW2Y/S220/shref_bo.jpeg'/></author><thr:total>1</thr:total></entry></feed>
