<?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-3248626519132837345</id><updated>2011-11-27T16:33:19.780-08:00</updated><category term='linux'/><category term='db_table'/><category term='samba'/><category term='facebook'/><category term='windows network with linux'/><category term='dynamic image'/><category term='sudoku'/><category term='iPhone'/><category term='imagecreate'/><category term='zend framework 1.9'/><category term='database'/><title type='text'>Tech notes</title><subtitle type='html'>My experience with technology.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-6968582367992526121</id><published>2011-01-08T09:13:00.000-08:00</published><updated>2011-01-08T09:28:15.839-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iPhone'/><title type='text'>iPhone error cannot "connect to iTunes store"</title><content type='html'>hi&lt;br /&gt;&lt;br /&gt;i got this error while trying to download an application. 'Cannot connect to&amp;nbsp;iTunes'.&lt;br /&gt;&lt;br /&gt;I had already my own user and password.&lt;br /&gt;&lt;br /&gt;To resolve it I had to register again on the&amp;nbsp;iPhone&amp;nbsp;for a new user. Once i placed all my old profile info in the registration on the phone. It told me that user already&amp;nbsp;exists. Than it asked me if i want to use this profile on the phone. Once i said yes. everything worked&amp;nbsp;normally&amp;nbsp;after that.&lt;br /&gt;&lt;br /&gt;hope it helps. This happen after a fresh install of a jailbreak.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-6968582367992526121?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/6968582367992526121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2011/01/iphone-error-cannot-connect-to-itunes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/6968582367992526121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/6968582367992526121'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2011/01/iphone-error-cannot-connect-to-itunes.html' title='iPhone error cannot &quot;connect to iTunes store&quot;'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-5780021894206196018</id><published>2009-10-01T05:29:00.000-07:00</published><updated>2009-10-03T16:19:02.073-07:00</updated><title type='text'>Google translate tool on your website</title><content type='html'>Google translate has now a widget that can be implemented onto you website. This widgte is a select box that you can change the language of you site.&lt;br /&gt;&lt;br /&gt;It is an easy to place on the site be copy pasting the code, see the simple code on the &lt;a href="http://translate.google.com/translate_tools"&gt;google blog&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;I have placed it on my site and it works well. You can see it working on &lt;a href="http://www.daily-sudoku.com/"&gt;sudoku&lt;/a&gt; site.&lt;br /&gt;&lt;br /&gt;let me know if you have any questions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-5780021894206196018?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/5780021894206196018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/10/google-translate-tool-on-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5780021894206196018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5780021894206196018'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/10/google-translate-tool-on-your-website.html' title='Google translate tool on your website'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-282730139789328739</id><published>2009-09-07T15:00:00.000-07:00</published><updated>2009-09-26T18:13:38.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zend framework 1.9'/><category scheme='http://www.blogger.com/atom/ns#' term='sudoku'/><category scheme='http://www.blogger.com/atom/ns#' term='facebook'/><title type='text'>Sudoku</title><content type='html'>Great site named &lt;a href="http://www.daily-sudoku.com/"&gt;Sudoku&lt;/a&gt; sute url is daily-sudoku.com. The site has been build in zend framework. The sudoku site has a connection with Google friend and facebook connect.&lt;br /&gt;&lt;br /&gt;The sudoku puzzle was started since 2006. Last month the sudoku puzzle site has taken a big upgrade. Meaning connection to social networks. This gives users a way to login to the site and save and completed time to solve a puzzle.&lt;br /&gt;&lt;br /&gt;Zendframe - work helped in making it easy to build and maintain. Keeping a well structure to add further &lt;a href="http://www.daily-sudoku.com/"&gt;sudoku&lt;/a&gt; features to the site. &lt;br /&gt;&lt;br /&gt;Enjoy the site. And let me know if you have any feedback.&lt;br /&gt;&lt;br /&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-282730139789328739?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/282730139789328739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/09/sudoku.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/282730139789328739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/282730139789328739'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/09/sudoku.html' title='Sudoku'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-1697879084502198819</id><published>2009-09-01T00:17:00.000-07:00</published><updated>2009-09-01T02:02:00.565-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zend framework 1.9'/><category scheme='http://www.blogger.com/atom/ns#' term='facebook'/><title type='text'>Zend framework pull information from the application.ini</title><content type='html'>Zend framework pull information from the application.ini i used it to store the facebook info.&lt;br /&gt;&lt;br /&gt;As i have a testing environment and a development one.  I needed it to be in the wonderful application.ini where i can easily change between environments.&lt;br /&gt;&lt;br /&gt;In the application.ini I have.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[testing : production]&lt;br /&gt;phpSettings.display_startup_errors = 1&lt;br /&gt;phpSettings.display_errors = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;resources.db.adapter = "mysqli"&lt;br /&gt;resources.db.params.host = "localhost"&lt;br /&gt;resources.db.params.username = "dbuser"&lt;br /&gt;resources.db.params.password = "########"&lt;br /&gt;resources.db.params.dbname = "########"&lt;br /&gt;&lt;br /&gt;facebook.apikey = ########23415733; (&lt;span style="color: red;"&gt;NOTICE&lt;/span&gt; should be integer)&lt;br /&gt;&lt;br /&gt;facebook.secret = ########66491221; (&lt;span style="color: red;"&gt;NOTICE&lt;/span&gt; should be integer)&lt;br /&gt;&lt;br /&gt;[development : production]&lt;br /&gt;phpSettings.display_startup_errors = 0&lt;br /&gt;phpSettings.display_errors = 0&lt;br /&gt;&lt;br /&gt;resources.db.adapter = "mysqli"&lt;br /&gt;resources.db.params.host = "localhost"&lt;br /&gt;resources.db.params.username = ""########"&lt;br /&gt;resources.db.params.password = ""########""&lt;br /&gt;resources.db.params.dbname = "########"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;facebook.apikey = ########2341577d; (&lt;span style="color: red;"&gt;NOTICE&lt;/span&gt; should be integer)&lt;br /&gt;facebook.secret = ########6649128; (&lt;span style="color: red;"&gt;NOTICE&lt;/span&gt; should be integer)&lt;/blockquote&gt;Now i want in the bootstrap to initialize the facebook object.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$aConfig = $this-&amp;gt;getOptions();&lt;br /&gt;require_once(APPLICATION_PATH .'/../library/facebook-platform/php/facebook.php');&lt;br /&gt;$facebook = new Facebook($aConfig['facebook']['apikey'],$aConfig['facebook']['secret']);&lt;br /&gt;Zend_Registry::set('facebook', $facebook); // register the object .&lt;/blockquote&gt;&lt;br /&gt;Now i can use in my application like so.&lt;br /&gt;&lt;br /&gt;$facebook = Zend_Registry::get('facebook');&lt;br /&gt;&lt;br /&gt;Take care,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-1697879084502198819?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/1697879084502198819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/09/zend-framework-pull-information-from.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/1697879084502198819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/1697879084502198819'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/09/zend-framework-pull-information-from.html' title='Zend framework pull information from the application.ini'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-100667075829925143</id><published>2009-08-25T23:05:00.000-07:00</published><updated>2009-08-25T23:11:18.230-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zend framework 1.9'/><category scheme='http://www.blogger.com/atom/ns#' term='sudoku'/><title type='text'>Learn zend framework</title><content type='html'>I like to learn from experience, and examples.&lt;br /&gt;&lt;br /&gt;A good starting point is a video a tech guy has done. You can find his videos on youtube. search zend framework&lt;br /&gt;&lt;br /&gt;His blog is&lt;br /&gt;&lt;a href="http://alex-tech-adventures.com/"&gt;http://alex-tech-adventures.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you know PHP, there will be a learning curve. It took me about 2 weeks to understand and work out the logic of how it all goes together.&lt;br /&gt;&lt;br /&gt;I am done with my first zend framework site. &lt;a href="http://www.daily-sudoku.com"&gt;www.daily-sudoku.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-100667075829925143?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/100667075829925143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/08/learn-zend-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/100667075829925143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/100667075829925143'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/08/learn-zend-framework.html' title='Learn zend framework'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-5918085693292422965</id><published>2009-08-16T08:40:00.000-07:00</published><updated>2009-08-16T08:46:35.927-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows network with linux'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><title type='text'>Simple Samba with no password for windows and linux</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;There are is much information how to install and configure your samaba on Linux. I have below an example of a simple samaba configuration. Which will make your linux computer available to windows machines in the "WORKGROUP".&lt;br /&gt;&lt;br /&gt;On the linux machine I have a folder that is specified to be readable and writable.&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;"&gt;path = /home/ShareFolder&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the smb.conf file i placed only the below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;workgroup = WORKGROUP&lt;br /&gt;os level = 20&lt;br /&gt;netbios name = ComputerName&lt;br /&gt;security = share&lt;br /&gt;&lt;br /&gt;[Public]&lt;br /&gt;comment = Public Folder&lt;br /&gt;path = /home/ShareFolder&lt;br /&gt;public = yes&lt;br /&gt;writable = yes&lt;br /&gt;create mask = 0777&lt;br /&gt;directory mask = 0777&lt;br /&gt;force user = nobody&lt;br /&gt;force group = nogroup&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-5918085693292422965?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/5918085693292422965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/08/simple-samba-with-no-password-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5918085693292422965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5918085693292422965'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/08/simple-samba-with-no-password-for.html' title='Simple Samba with no password for windows and linux'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-4162764115991123401</id><published>2009-08-15T22:02:00.000-07:00</published><updated>2009-09-01T00:33:37.045-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zend framework 1.9'/><category scheme='http://www.blogger.com/atom/ns#' term='imagecreate'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamic image'/><title type='text'>Zend frame work dynamic image : imagecreate</title><content type='html'>A short example how to create an image in the zend MVC frame work.&lt;br /&gt;&lt;br /&gt;It is the same code as you would do it in PHP. Below i explain how to place it in the framework.&lt;br /&gt;&lt;br /&gt;I created a conrtoller, and in side an Action to get information from the database. In the view i put the code to create the Image.&lt;br /&gt;&lt;br /&gt;I have&lt;br /&gt;/application/CreatemyimageController.php&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size: small;"&gt; &lt;span style="font-size: x-small;"&gt;class CreatemyimageController extends Zend_Controller_Action&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;public function init()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;/* Initialize action controller here */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public function indexAction()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public function indexpageimage(){&lt;br /&gt;// i here get the date from the DB or any other info.&lt;br /&gt;// send it to the view&lt;br /&gt;$this -&amp;gt; view -&amp;gt; cell_list = $row;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the view i create a file.  indexpageimage.phtml&lt;br /&gt;&lt;br /&gt;&lt;div class="example-contents programlisting"&gt;&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span style="color: black;"&gt; &lt;span style="color: #0000bb;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;cell_list;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #0000bb;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #0000bb;"&gt; header&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;"Content-type: image/png"&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im &lt;/span&gt;&lt;span style="color: #007700;"&gt;= @&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagecreate&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;110&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;20&lt;/span&gt;&lt;span style="color: #007700;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; or die(&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;"Cannot Initialize new GD image stream"&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$background_color &lt;/span&gt;&lt;span style="color: #007700;"&gt;= &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagecolorallocate&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;0&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;0&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;0&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$text_color &lt;/span&gt;&lt;span style="color: #007700;"&gt;= &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagecolorallocate&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;233&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;14&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;91&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagestring&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;1&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;5&lt;/span&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;5&lt;/span&gt;&lt;span style="color: #007700;"&gt;,  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code style="color: #ff6600;"&gt;$string&lt;/code&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt;, &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$text_color&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagepng&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;imagedestroy&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$im&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt; &lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;And my url is&lt;br /&gt;http://localhost/createmyimage/indexpageimage/&lt;br /&gt;&lt;br /&gt;This is it !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-4162764115991123401?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/4162764115991123401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/08/zend-frame-work-dynamic-image.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/4162764115991123401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/4162764115991123401'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/08/zend-frame-work-dynamic-image.html' title='Zend frame work dynamic image : imagecreate'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3248626519132837345.post-5717557222169582507</id><published>2009-08-15T14:58:00.000-07:00</published><updated>2009-08-15T22:15:54.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zend framework 1.9'/><category scheme='http://www.blogger.com/atom/ns#' term='db_table'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Zend database examples</title><content type='html'>&lt;span style="font-size:130%;"&gt;Zend_Db_Table &lt;/span&gt;is a way for zend framework to interact with the database.&lt;br /&gt;&lt;br /&gt;As a beginner it is a challenge to find examples how to interact with the zend table. I have collected a number of examples.&lt;br /&gt;&lt;br /&gt;I am using here the MVC model.&lt;br /&gt;&lt;br /&gt;I have placed a cless in /Models/DbTable/Puzzel.php.  Here i "tell" the framework that i will be using the table 'puzelle'.  &lt;span style="font-style: italic;"&gt;See below class. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;class Model_DbTable_Puzelle extends Zend_Db_Table_Abstract&lt;br /&gt;{&lt;br /&gt;  protected $_name = 'puzelle';&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In a controller file i place the SQL queries in the functions.&lt;br /&gt;&lt;br /&gt;// here i tell zend that i will use the puzzel table.&lt;br /&gt;$puzzelTBL = new Model_DbTable_Puzelle();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Select &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"Select * FROM  apple Where data = $to and answer = 0"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;IN ZEND&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;     $to = date("Y-m-d");&lt;br /&gt;     $result = $this -&gt; puzzelTBL -&gt; fetchRow(' date = "'.$to.'" AND answer = 0');&lt;br /&gt;     $row = $result -&gt;toArray();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Insert&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;INSERT INTO table_name (column1, column2, column3,...)&lt;br /&gt;VALUES (value1, value2, value3,...)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;in ZEND&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$data = array(&lt;br /&gt;                        'column1'      =&gt; $value1,&lt;br /&gt;                    'column2' =&gt; $value2,&lt;br /&gt;                    'column3' =&gt; $value3&lt;br /&gt;                   );&lt;br /&gt;                  &lt;br /&gt;                   $puzzelTBL -&gt;  insert( $data);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3248626519132837345-5717557222169582507?l=roninio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roninio.blogspot.com/feeds/5717557222169582507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://roninio.blogspot.com/2009/08/zend-database-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5717557222169582507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3248626519132837345/posts/default/5717557222169582507'/><link rel='alternate' type='text/html' href='http://roninio.blogspot.com/2009/08/zend-database-examples.html' title='Zend database examples'/><author><name>Ronen</name><uri>http://www.blogger.com/profile/06733042305350808495</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
