<?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:blogger='http://schemas.google.com/blogger/2008' 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-5290168588330019105</id><updated>2024-10-23T22:55:36.103-07:00</updated><category term="tutorials"/><category term="php"/><category term="chrome"/><category term="d"/><category term="dns"/><category term="email"/><category term="firefox"/><category term="gridview"/><category term="hardware"/><category term="javascript"/><category term="linux"/><category term="mailgun"/><category term="namecheap"/><category term="pcduino"/><category term="photoshop"/><category term="ubuntu"/><category term="wordpress"/><category term="yii"/><category term="yii2"/><category term="youtube"/><title type='text'>NEVEREVERBLOG</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-2793014691194088749</id><published>2015-01-20T11:28:00.003-08:00</published><updated>2015-02-12T10:10:23.467-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Laptop overheating and suddenly shutting down?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://nevereverblog.blogspot.com/2015/01/laptop-overheating-and-suddenly-shutting-down.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqyHsr0Z6tQwwY0U6u5fjk7VpWogFsetk4IbLqIvWQX1Um00ElNPN1jlzQ4reT5pwRYXi82-Gaa2LcB-sKb2lgaIujLvGOP9U8A1jG2FWzj1DW6immjf3yUl0VQh4V6h5jiZjP_-HNHxUz/s1600/the+rock+is+cooking.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The rock is cooking.
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
My Acer Aspire 5930 laptop started overheating and shutting down again so I checked the temperature and found that one of my cores was missing while the temperature of the remaining core went negative. That can&#39;t be good. Time to clean the heat sink and change the thermal compound. This will help the laptop to keep the temperature down.&lt;br /&gt;&lt;br /&gt;
1) Unplug everything. Turn the laptop over and remove the screws.
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOAg5CxTM6cmtaZD8fDKijaAls_IkbSU9jez_50br95wIOJfwJ2D0i6un7skfY9PpEINyHvrx3Ltwe-U8oxq9dYaKCPFU1Fhat1r_l9CWNEgqdz14nF1ylFhraSK6m5WXPtWB8QhybrrmW/s1600/remove+screws.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOAg5CxTM6cmtaZD8fDKijaAls_IkbSU9jez_50br95wIOJfwJ2D0i6un7skfY9PpEINyHvrx3Ltwe-U8oxq9dYaKCPFU1Fhat1r_l9CWNEgqdz14nF1ylFhraSK6m5WXPtWB8QhybrrmW/s640/remove+screws.jpg&quot; height=&quot;283&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
2) Remove the back cover.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk-2f84bCaCiKRgEQEG7plO4kxiDdQLe44-6h-8JOWbBzE5FwZYFYDR7JnCAUasff0NoJrCAhdcri_OaaihH8lmvSWB4rZ405gxeeERDv3tHzccBIGix4vysC3FWNGobqz7LsOcg6NgMJL/s1600/remove+back+cover.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk-2f84bCaCiKRgEQEG7plO4kxiDdQLe44-6h-8JOWbBzE5FwZYFYDR7JnCAUasff0NoJrCAhdcri_OaaihH8lmvSWB4rZ405gxeeERDv3tHzccBIGix4vysC3FWNGobqz7LsOcg6NgMJL/s400/remove+back+cover.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
3) Remove two screws that are holding the fan in place and disconnect it&#39;s power cable.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWoJv4zcJWSIkWBd_zJ3GF3ptShj4KUP-XuaZmvm5NuBv35u_0SnnBVtrOAyOlxBbTYJFehsTPh5pkVqUlozQ95SaSITUVyktwMoLsar9Fc9rIkfywoBHBf4BFsCqB0wgrQYCWZNR5T6TV/s1600/remove+fan.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWoJv4zcJWSIkWBd_zJ3GF3ptShj4KUP-XuaZmvm5NuBv35u_0SnnBVtrOAyOlxBbTYJFehsTPh5pkVqUlozQ95SaSITUVyktwMoLsar9Fc9rIkfywoBHBf4BFsCqB0wgrQYCWZNR5T6TV/s400/remove+fan.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4) Remove the fan.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU4E1oHpty7xcrLuNiEwkmPI6b9l6p209EGz3hbywj3tCJV1tlORDCZCN8-IyvuPaiyk_-O1l2wS8yKrKwa4MkrZlULnq16DxZCDMJVNPxkYgvjTdS47TSMimohRLF2u7oHSUWnkBaFfBY/s1600/fan+removed.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU4E1oHpty7xcrLuNiEwkmPI6b9l6p209EGz3hbywj3tCJV1tlORDCZCN8-IyvuPaiyk_-O1l2wS8yKrKwa4MkrZlULnq16DxZCDMJVNPxkYgvjTdS47TSMimohRLF2u7oHSUWnkBaFfBY/s400/fan+removed.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
5) Notice the dust on the heat sink.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyYJ5a5CPScBQgpT-3MYd9xGuh3xEj2VixlPWEvle7I46r-6eJfOsEkWb05gjyTbsrCn-jTUDvgh09dcHBdMHI9YbCdQwUkF88BtFRdazrDQ_RKB7TVJKG3YO4juFN-X3N1RFlFqr13RHs/s1600/remove+heatsink+dust.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyYJ5a5CPScBQgpT-3MYd9xGuh3xEj2VixlPWEvle7I46r-6eJfOsEkWb05gjyTbsrCn-jTUDvgh09dcHBdMHI9YbCdQwUkF88BtFRdazrDQ_RKB7TVJKG3YO4juFN-X3N1RFlFqr13RHs/s400/remove+heatsink+dust.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
6) Carefully unscrew the remaining heat sink screws. Don&#39;t try to remove them.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw4Ulk_I1PE5l-R1cQHWhFsCPw14Gk86E3lmb1nHwkRpfwVopAZb0gBTuLRb644iNn6oZuUA5l4KdYY9C8sZBoLeF7uM5taaU0Dqv_jTBkZPb-RnyJWnGfo-8h-bwx8mOBLKBbkB4YqFcj/s1600/remove+heatsink+screws.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw4Ulk_I1PE5l-R1cQHWhFsCPw14Gk86E3lmb1nHwkRpfwVopAZb0gBTuLRb644iNn6oZuUA5l4KdYY9C8sZBoLeF7uM5taaU0Dqv_jTBkZPb-RnyJWnGfo-8h-bwx8mOBLKBbkB4YqFcj/s400/remove+heatsink+screws.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7) Gently lift and remove the heat sink. It might be stuck because of the old thermal grease.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRqR47Nnrvefm0CyfK-CCIIhdoBiDa1qtIcVxjawLzxt_WPG-PC0eMwu0qluWh29P3Ped9otKJfaL1gRlr9pnH6RMk_NfzLqBPYO4Q7dN8NOgbqQ2xDCl2yvPUCOzk4keBQIRW32qiPPVY/s1600/gently+lift+the+heatsink+and+remove+it.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRqR47Nnrvefm0CyfK-CCIIhdoBiDa1qtIcVxjawLzxt_WPG-PC0eMwu0qluWh29P3Ped9otKJfaL1gRlr9pnH6RMk_NfzLqBPYO4Q7dN8NOgbqQ2xDCl2yvPUCOzk4keBQIRW32qiPPVY/s400/gently+lift+the+heatsink+and+remove+it.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
8) Remove the old thermal grease from the heat sink. I used a knife.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizsQz6GvxIPfjC6_trEmxBMZpE6kcP0mcH5HSQy8qhhqgJLwa431dvzUlODh4L8eX7Y8kZ0NI6RsvlDiY9SoH0UR1ck1NnbjibqlkfOJeBB7pFzzOpSyWKWk6vj5jc-3zg_Y3BDyrT9N4V/s1600/remove+the+old+thermal+grease.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizsQz6GvxIPfjC6_trEmxBMZpE6kcP0mcH5HSQy8qhhqgJLwa431dvzUlODh4L8eX7Y8kZ0NI6RsvlDiY9SoH0UR1ck1NnbjibqlkfOJeBB7pFzzOpSyWKWk6vj5jc-3zg_Y3BDyrT9N4V/s400/remove+the+old+thermal+grease.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
9) Don&#39;t clean the thermal grease from the circuitry, you might damage the small SMD components. Just add more grease! I bought my thermal grease on ebay.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipQET3G-BsGf5EuIhfAZyZQs-dNPXvztEmjowlDOh2kptxUfZajFibVkMuEi1je5pAi-nkBt6bK_SUfYOS1lHV32ZXG_Xa4kyx6YBF0axkQ5fvvMnZq5ze3sxm_0d8kGZTtPvK1P4pZlmi/s1600/add+new+thermal+grease.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipQET3G-BsGf5EuIhfAZyZQs-dNPXvztEmjowlDOh2kptxUfZajFibVkMuEi1je5pAi-nkBt6bK_SUfYOS1lHV32ZXG_Xa4kyx6YBF0axkQ5fvvMnZq5ze3sxm_0d8kGZTtPvK1P4pZlmi/s400/add+new+thermal+grease.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
10) Put the heat sink back and screw it in place, then put the fan back in, screw it in place and connect its power cable.
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7V9i3Va7IuqmTukbI966j1Fkamoc1Gqt_v9Bh_ePh75ZGW9DnzgbYBf-_bUvL7zO_rHbXPVPVrQCSKFqxuLnUYfvkg1Acg9Q0oTwuLzMtuTg5CMyComFSH-UJU6q9O_UmVbgGjct9SfN5/s1600/put+heatsink+and+fan+back+and+screw+them+in+place.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7V9i3Va7IuqmTukbI966j1Fkamoc1Gqt_v9Bh_ePh75ZGW9DnzgbYBf-_bUvL7zO_rHbXPVPVrQCSKFqxuLnUYfvkg1Acg9Q0oTwuLzMtuTg5CMyComFSH-UJU6q9O_UmVbgGjct9SfN5/s400/put+heatsink+and+fan+back+and+screw+them+in+place.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
11) Put the back cover back and screw it in place
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV1ojzzSDxl7hczcxz2tQndI49I_Snn6X9FQLTJDUdD8uuFU6nWuV1QL523_B_RKhafyomU5SUQw5FGsIKJKYnDlYkH0MkSRtHvb0mcokmrKsx2oriVQ3hG3ByqJUuJG6eKzhZbeAu07qa/s1600/put+the+back+cover+back+on+and+screw+it+in+place.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV1ojzzSDxl7hczcxz2tQndI49I_Snn6X9FQLTJDUdD8uuFU6nWuV1QL523_B_RKhafyomU5SUQw5FGsIKJKYnDlYkH0MkSRtHvb0mcokmrKsx2oriVQ3hG3ByqJUuJG6eKzhZbeAu07qa/s400/put+the+back+cover+back+on+and+screw+it+in+place.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Congratulations! You&#39;re done. Fire it up and enjoy.
Here are the before and after temperature readings:
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Rm2_OiaJu8vC27s-2IOZHovZytwj2kQ1NLWn-bVwYneHbof_7ZzgMVUuHezb1AHBPbHu9Jt2EGJVMccKYmz4JufPxPOoQ7Ki0ooiM5uq2RlBDlJY2fLBa7xSxae1N5TGk-_qc8FTvLpK/s1600/core+temperature.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Rm2_OiaJu8vC27s-2IOZHovZytwj2kQ1NLWn-bVwYneHbof_7ZzgMVUuHezb1AHBPbHu9Jt2EGJVMccKYmz4JufPxPOoQ7Ki0ooiM5uq2RlBDlJY2fLBa7xSxae1N5TGk-_qc8FTvLpK/s400/core+temperature.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/2793014691194088749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2015/01/laptop-overheating-and-suddenly-shutting-down.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/2793014691194088749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/2793014691194088749'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2015/01/laptop-overheating-and-suddenly-shutting-down.html' title='Laptop overheating and suddenly shutting down?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqyHsr0Z6tQwwY0U6u5fjk7VpWogFsetk4IbLqIvWQX1Um00ElNPN1jlzQ4reT5pwRYXi82-Gaa2LcB-sKb2lgaIujLvGOP9U8A1jG2FWzj1DW6immjf3yUl0VQh4V6h5jiZjP_-HNHxUz/s72-c/the+rock+is+cooking.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-5875446385031131122</id><published>2014-11-25T10:27:00.000-08:00</published><updated>2015-02-13T10:36:48.176-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>WordPress redirect loop</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://nevereverblog.blogspot.com/2014/11/wordpress-redirect-loop.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi5siDv1we5SQC1cW0WnDq8opPMbwUXZt4j7_yD6teYCABUBcMJ2LL4Tlj6IE9y_3kAo4uXvSP3ma2pnTtUebpyxdrFgiqr1w4WBZKPehBGPYNp0KzceknzTKfBH1BU0I1C8C_rxu9RtLc/s1600/wordpress-redirect-loop-fix.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
If your blog is working fine when you include the &quot;www&quot; in the url, but you get a &quot;This webpage has a riderect loop&quot; message when you omit the &quot;www&quot; here&#39;s a quick and dirty solution for your problem.
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Navigate to your blogs root directory, open &lt;b&gt;wp-content/themes&lt;/b&gt; then go to your current themes folder, open the &lt;b&gt;fuctions.php&lt;/b&gt; file and add this line &lt;b&gt;remove_filter(&#39;template_redirect&#39;, &#39;redirect_canonical&#39;);&lt;/b&gt; at the very end, right between &lt;b&gt;}&lt;/b&gt; and &lt;b&gt;?&amp;gt;&lt;/b&gt;.
&lt;br /&gt;&lt;br /&gt;
It should look something like this:
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #666666;&quot;&gt;remove_filter&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;template_redirect&#39;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;redirect_canonical&#39;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;
&lt;/pre&gt;
And you&#39;re done!</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/5875446385031131122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/wordpress-redirect-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/5875446385031131122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/5875446385031131122'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/wordpress-redirect-loop.html' title='WordPress redirect loop'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi5siDv1we5SQC1cW0WnDq8opPMbwUXZt4j7_yD6teYCABUBcMJ2LL4Tlj6IE9y_3kAo4uXvSP3ma2pnTtUebpyxdrFgiqr1w4WBZKPehBGPYNp0KzceknzTKfBH1BU0I1C8C_rxu9RtLc/s72-c/wordpress-redirect-loop-fix.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-8522295833099385484</id><published>2014-11-18T05:28:00.000-08:00</published><updated>2015-02-13T10:33:27.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gridview"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="yii2"/><title type='text'>Yii2 kartik GridView toolbar not showing up?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/2014/11/yii2-kartik-gridview-toolbar-not-showing-up.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUfr9CrgFd-U5J89CnbLO-yjg-nnSyEeZ4dVDQPZUQOPbC2W282D9y0MvdLtFYLqHSLaL1WTOWvnY5FUqiS_Dbgt2Vf-rxZOqPYbzZyF-7D9McXBvuZqEmufUVKpxsVMhDdmYXt26_-34T/s1600/kartik-gridview-with-toolbar.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Took me some time, but I finally found out why.
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
If you&#39;re having problems with the toolbar in &lt;a href=&quot;http://demos.krajee.com/grid-demo&quot;&gt;kartik\grid\GridView&lt;/a&gt; you probably haven&#39;t set the &lt;b&gt;before&lt;/b&gt; property for the &lt;b&gt;panel&lt;/b&gt;. Try this code see if it helps. Don&#39;t forget to replace the columns with your own. &lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;?=&lt;/span&gt; GridView&lt;span style=&quot;color: #339933;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;widget&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;&#39;dataProvider&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$dataProvider&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;&#39;filterModel&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$searchModel&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;&#39;columns&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;email:email&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;&#39;toolbar&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;content&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt;
            Html&lt;span style=&quot;color: #339933;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;Add&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;create&#39;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;data-pjax&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;false&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;class&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;btn btn-success&#39;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;
            Html&lt;span style=&quot;color: #339933;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;&amp;lt;i class=&quot;glyphicon glyphicon-repeat&quot;&amp;gt;&amp;lt;/i&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;index&#39;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;data-pjax&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;class&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;btn btn-default&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;title&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;Reset Grid&#39;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;{export}&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;{toggleData}&#39;&lt;/span&gt;
    &lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;color: blue;&quot;&gt;&#39;panel&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;heading&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;&amp;lt;b&amp;gt;My View&amp;lt;/b&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;&#39;before&#39;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&#39;Before content&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red; font-style: italic;&quot;&gt;//IMPORTANT&lt;/span&gt;
    &lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/8522295833099385484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/yii2-kartik-gridview-toolbar-not-showing-up.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/8522295833099385484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/8522295833099385484'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/yii2-kartik-gridview-toolbar-not-showing-up.html' title='Yii2 kartik GridView toolbar not showing up?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUfr9CrgFd-U5J89CnbLO-yjg-nnSyEeZ4dVDQPZUQOPbC2W282D9y0MvdLtFYLqHSLaL1WTOWvnY5FUqiS_Dbgt2Vf-rxZOqPYbzZyF-7D9McXBvuZqEmufUVKpxsVMhDdmYXt26_-34T/s72-c/kartik-gridview-with-toolbar.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-4015300374081701812</id><published>2014-11-15T01:57:00.001-08:00</published><updated>2015-02-13T10:33:37.359-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dns"/><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="mailgun"/><category scheme="http://www.blogger.com/atom/ns#" term="namecheap"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Set up a custom email address for free</title><content type='html'>If you have a website with a custom domain you can start sending and receiving email using a custom address like you@yourdomain.com.
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://nevereverblog.blogspot.com/2014/11/set-up-custom-email-address-for-free.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Tzr6-Nx7TMKiI7WVZqYbron1YR5g2V2gkTD7cxPtVAtUh2ye7oyuySu2fEbZ_8g_TwHDVRmxKSmtXZ7g6ryLnYW6DO7YNCgjlpS7A9_lx05zjFTHKgfwydT2kCOEFgfopxr6Wq5OQlj1/s1600/email-address-with-custom-domain.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Set up an account with &lt;a href=&quot;http://www.mailgun.com/&quot;&gt;mailgun&lt;/a&gt;, configure your &lt;a href=&quot;http://documentation.mailgun.com/quickstart-sending.html#common-dns-providers&quot;&gt;DNS records&lt;/a&gt; and you&#39;re ready to send mail using your favorite App through SMTP or using Curl, Ruby, Python, PHP, Java or C# through their API. Check &lt;a href=&quot;http://documentation.mailgun.com/quickstart.html&quot;&gt;mailgun documentation&lt;/a&gt; to find out more.&lt;br /&gt;
Configuring DNS records for the first time may be tricky. You can&#39;t just copy everything mailgun provides you with as is&amp;nbsp;and paste it into your DNS record config page. Due to a lack of experience I had to make some adjustments before my domain got verified.&lt;br /&gt;
&lt;br /&gt;
If you&#39;re using&amp;nbsp;&lt;a href=&quot;https://www.namecheap.com/&quot;&gt;namecheap&lt;/a&gt;&amp;nbsp;here&#39;s how your settings in All Host Records should look like(note the use of the @ simbol):&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyzCamuhFGxypv-9VBnAufsZCWUFSM9snKvc3pPopVf2MAkdQU04qH4aiANpiFjKlaV3qCkUThS49O8AUPhY8ys7IaMQbLs2hZZY4WUgj6NKh2FPGM81jyfN9juE_jKwrQyFhClgIEQEjd/s1600/namecheap-mailgun-subdomain-setteings.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyzCamuhFGxypv-9VBnAufsZCWUFSM9snKvc3pPopVf2MAkdQU04qH4aiANpiFjKlaV3qCkUThS49O8AUPhY8ys7IaMQbLs2hZZY4WUgj6NKh2FPGM81jyfN9juE_jKwrQyFhClgIEQEjd/s1600/namecheap-mailgun-subdomain-setteings.PNG&quot; height=&quot;115&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjut3IWf4y6W3R3Ghfv_ehx182Q-YBiuYz4TzKy1X762ukWwNaMCBsA1sjb88aRWIUTMCEvw4QkrGyWDg-twnCuZTfNU_-ybK3TFi8cM431Ewg4kjxPd5tc-Pn_65XtbHoMgf5AGxPWIAxd/s1600/namecheap-mailgun-mail-server-mx-records.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjut3IWf4y6W3R3Ghfv_ehx182Q-YBiuYz4TzKy1X762ukWwNaMCBsA1sjb88aRWIUTMCEvw4QkrGyWDg-twnCuZTfNU_-ybK3TFi8cM431Ewg4kjxPd5tc-Pn_65XtbHoMgf5AGxPWIAxd/s1600/namecheap-mailgun-mail-server-mx-records.PNG&quot; height=&quot;206&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/4015300374081701812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/set-up-custom-email-address-for-free.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/4015300374081701812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/4015300374081701812'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2014/11/set-up-custom-email-address-for-free.html' title='Set up a custom email address for free'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Tzr6-Nx7TMKiI7WVZqYbron1YR5g2V2gkTD7cxPtVAtUh2ye7oyuySu2fEbZ_8g_TwHDVRmxKSmtXZ7g6ryLnYW6DO7YNCgjlpS7A9_lx05zjFTHKgfwydT2kCOEFgfopxr6Wq5OQlj1/s72-c/email-address-with-custom-domain.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-3482193600354573059</id><published>2013-10-11T11:24:00.001-07:00</published><updated>2015-02-13T10:33:55.554-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="d"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Simple Console Application in D</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://nevereverblog.blogspot.com/2013/10/simple-console-application-in-d.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvrGtzw9xBHXmr_aUoeOnn0zzgBwjgx42vlOMTqbgBeXpHT8JyZfTlPpRKaW5noB1v-u34qswdm1N7Zknogib6TY4Y4ZwIHrOJu4gS3YtaUGrLnAluy9RHiAGfIeIoWySFhUB9scggWjDV/s320/dlogo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
D is looking like the next big thing. Let&#39;s write a simple console application to become familiar with it.
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Our program will ask the user for their name, and then greet the user.
To work with input and output we will first import two libraries

&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;import&lt;/span&gt; &lt;span style=&#39;color:#666616; &#39;&gt;std&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;stdio&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#666616; &#39;&gt;std&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;cstream&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;/pre&gt;

Now for the main loop that will contain all our code.

&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;void&lt;/span&gt; &lt;span style=&#39;color:#400000; &#39;&gt;main&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#603000; &#39;&gt;string&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt; args&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;
&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

&lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
&lt;/pre&gt;
string[] args will contain any parameters passed from the command line. We won&#39;t need it for our program.&lt;br /&gt;&lt;br /&gt;

We will need a variable to store the name of the user so let&#39;s declare it.

&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;char&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt; userName&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;/pre&gt;
char[] is a character array or in other words a string. Notice that we have to put the brackets after the type and not after the variable name like in many other languages.&lt;br /&gt; &lt;br /&gt;

Now we&#39;ll output a message. Kind of looks like &lt;a href=&quot;http://en.wikipedia.org/wiki/Pascal_(programming_language)&quot;&gt;Pascal&lt;/a&gt;.
&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
writeln&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;What is your name?&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;/pre&gt;
This is the important part. We will take whatever the user enters and store it in our variable userName after the user presses Enter.

&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
userName &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; din&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;readLine&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;/pre&gt;

Finally we will greet the user and wait until the Enter key is pressed.
&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
writeln&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;Hello &lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; userName&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;

din&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#603000; &#39;&gt;getc&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;br / &lt;br /&gt;
&lt;b&gt;Our final program:&lt;/b&gt;
&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;
&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;import&lt;/span&gt; &lt;span style=&#39;color:#666616; &#39;&gt;std&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;stdio&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#666616; &#39;&gt;std&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;cstream&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;

&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;void&lt;/span&gt; &lt;span style=&#39;color:#400000; &#39;&gt;main&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#603000; &#39;&gt;string&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt; args&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;
&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;
	&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;char&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt; userName&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
	
	writeln&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;What is your name?&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
	userName &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; din&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;readLine&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
	writeln&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;Hello &lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; userName&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
	&lt;span style=&#39;color:#696969; &#39;&gt;// Lets the user press &amp;lt;Return&gt; before program stops&lt;/span&gt;
	din&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#603000; &#39;&gt;getc&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwxdDfvTF6w9N04nuB4cgKoUtPzUwH3qBP9YAyB75i7vLqdcDDAy6741UdhfSuFBQxu5bw2FQ4jd0rDgNMdyjsF-UC1lXSO5I7PaW6_0CdnDkCJ6CDJtZpmNcFaKfaA5JpTxAs2Mrk2e8y/s1600/simple+console+application+in+D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwxdDfvTF6w9N04nuB4cgKoUtPzUwH3qBP9YAyB75i7vLqdcDDAy6741UdhfSuFBQxu5bw2FQ4jd0rDgNMdyjsF-UC1lXSO5I7PaW6_0CdnDkCJ6CDJtZpmNcFaKfaA5JpTxAs2Mrk2e8y/s400/simple+console+application+in+D.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/3482193600354573059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2013/10/simple-console-application-in-d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/3482193600354573059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/3482193600354573059'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2013/10/simple-console-application-in-d.html' title='Simple Console Application in D'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvrGtzw9xBHXmr_aUoeOnn0zzgBwjgx42vlOMTqbgBeXpHT8JyZfTlPpRKaW5noB1v-u34qswdm1N7Zknogib6TY4Y4ZwIHrOJu4gS3YtaUGrLnAluy9RHiAGfIeIoWySFhUB9scggWjDV/s72-c/dlogo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-2631930474082072295</id><published>2013-09-30T10:28:00.000-07:00</published><updated>2015-02-25T10:40:05.992-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="pcduino"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Installing Ubuntu on the pcDuino</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://nevereverblog.blogspot.com/2014/11/yii2-kartik-gridview-toolbar-not-showing-up.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;pcduino&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbGG381Hzt-0-V0ojS1iltnqvMRRwOAjVxpQhVyaklO08pZavlFCDY2FexILJcXBw88LWqjmRKcVYtQkyFpBUbizj9UQuAJYxh0E3VMdhmIGLen8iPwyvZrubpGGvGOix6Ll__8-cZY3Nm/s400/DSC_7289.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
There are several methods of installing Ubuntu on the pcDuino. All of them are simple... or are they?&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
There are only two steps: 1) Install the Linux kernel 2) Install Ubuntu.&lt;br /&gt;
The first part may seem tricky, but if you&#39;ve done it once it&#39;s quite easy. The second part is a piece of cake.
You can use the &lt;a href=&quot;http://www.vctec.co.kr/web/product/pcduino/User+Guide/pcDuino+OS+Installation+Guide.pdf&quot;&gt;official instructions&lt;/a&gt; or the ones provided by &lt;a href=&quot;https://learn.sparkfun.com/tutorials/getting-started-with-pcduino/changing-the-os&quot;&gt;SparkFun&lt;/a&gt;.
If you have an SD card you can install the Linux kernel with PhoenixCard. If you don&#39;t have an SD card install the kernel with LiveSuit.
&lt;br /&gt;
&lt;br /&gt;
Once you&#39;ve installed the Linux kernel each time you boot up the pcDuino it will go into update mode. If you haven&#39;t inserted your SD card of Flash drive with the unpacked &lt;a href=&quot;http://www.pcduino.com/?page_id=14&quot;&gt;Ubuntu files&lt;/a&gt; do it now and you should get this message(see image below):
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Fjnv-c1GuXaXc67Bzlsv1zwR-8sciIwBMF9MYd3NHKXr4RrC7v3FGg_XwWAOJPh0JJn5mHnAZAWCzUeJ3asYEvZl5cCpGmeF78lpvh3r2bZkpMdvJrMcn8hwjCmAANCh1cUK_xsIdBsP/s1600/CSC_7264.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Fjnv-c1GuXaXc67Bzlsv1zwR-8sciIwBMF9MYd3NHKXr4RrC7v3FGg_XwWAOJPh0JJn5mHnAZAWCzUeJ3asYEvZl5cCpGmeF78lpvh3r2bZkpMdvJrMcn8hwjCmAANCh1cUK_xsIdBsP/s320/CSC_7264.JPG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
If you&#39;ve done everything as instructed and it still doesn&#39;t want to install Ubuntu you might have encountered the same problem I have - &lt;b&gt;wrong file system&lt;/b&gt;. My Flash drive had &lt;b&gt;NTFS&lt;/b&gt; and Linux couldn&#39;t see the files on the Flash drive because of it. Once I formated the Flash drive to &lt;b&gt;FAT32&lt;/b&gt; everything went smoothly.&lt;br /&gt;&lt;br /&gt;
If you have any questions leave them as a comment.</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/2631930474082072295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2013/09/instaling-ubuntu-on-pcduino.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/2631930474082072295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/2631930474082072295'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2013/09/instaling-ubuntu-on-pcduino.html' title='Installing Ubuntu on the pcDuino'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbGG381Hzt-0-V0ojS1iltnqvMRRwOAjVxpQhVyaklO08pZavlFCDY2FexILJcXBw88LWqjmRKcVYtQkyFpBUbizj9UQuAJYxh0E3VMdhmIGLen8iPwyvZrubpGGvGOix6Ll__8-cZY3Nm/s72-c/DSC_7289.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-5183181470706917759</id><published>2012-02-05T06:45:00.000-08:00</published><updated>2015-02-13T10:34:43.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="yii"/><title type='text'>Image resize filter for xupload in Yii framework</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://nevereverblog.blogspot.com/2012/02/image-resize-filter-for-xupload-in-yii.html&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGaILCeSqp9AoS0JPCfUWfCiFPhYYVG4mSbziJc9_il2M_anCXuzCMQunp2S7EDkmPuhexVLx8kOVu4Fvoli_yUxfBD050K71FAE5GyPq6hDJZYlRITkjhOanFdVYxmhmKG2g7fLVkicN2/s320/Logo_Yii.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
I was recently testing a wonderful AJAX upload widget &lt;a href=&quot;http://www.yiiframework.com/extension/xupload/&quot;&gt;xupload&lt;/a&gt; for &lt;a href=&quot;http://www.yiiframework.com/&quot;&gt;Yii framework&lt;/a&gt; and decided that I want to resize the picture after it was uploaded. I found another extension &lt;a href=&quot;http://www.yiiframework.com/extension/image/&quot;&gt;Image&lt;/a&gt; that did the trick perfectly, but one question remained: where should I put image resize code, so that I wouldn&#39;t have to change the xupload code?
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
That&#39;s when I decided I should learn how to make filters for Yii! I made a file PostUploadFilter.php and put in protected/filters.&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&amp;lt;?php&lt;br /&gt;Yii&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;application.extensions.image.Image&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;class &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;PostUploadFilter &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;extends &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CFilter&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;{&lt;br /&gt;protected function &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;preFilter&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$filterChain&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;// we have nothing to do here&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #007700;&quot;&gt;}&lt;br /&gt;&lt;br /&gt;protected function &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;postFilter&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$filterChain&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&lt;br /&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;// first we need the name of our file&lt;/span&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;XUploadForm&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;file &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CUploadedFile&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;getInstance&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;file&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;name &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;// let&#39;s find the full path to our file&lt;/span&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;realpath&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Yii&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;app&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;()-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;getBasePath&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;/../images/uploads/1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;\\&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;  &lt;br /&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;// load the image, resize if it&#39;s wider than 1000px, save!&lt;/span&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$image &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Image&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;   if(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&lt;br /&gt;       &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;resize&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$model&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);  &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then I added the filter to my controller.&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;public function &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;filters&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;()&lt;br /&gt;{&lt;br /&gt;  return array(&lt;br /&gt;      array(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;application.filters.PostUploadFilter + upload&#39;&lt;/span&gt;),&lt;br /&gt;    );&lt;br /&gt;    }&lt;/code&gt;&lt;br /&gt;We want the filter to work only when the &quot;upload&quot; action takes place, hence the &quot;+ upload&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/5183181470706917759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2012/02/image-resize-filter-for-xupload-in-yii.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/5183181470706917759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/5183181470706917759'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2012/02/image-resize-filter-for-xupload-in-yii.html' title='Image resize filter for xupload in Yii framework'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGaILCeSqp9AoS0JPCfUWfCiFPhYYVG4mSbziJc9_il2M_anCXuzCMQunp2S7EDkmPuhexVLx8kOVu4Fvoli_yUxfBD050K71FAE5GyPq6hDJZYlRITkjhOanFdVYxmhmKG2g7fLVkicN2/s72-c/Logo_Yii.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-1243213612732795622</id><published>2009-10-27T01:42:00.000-07:00</published><updated>2015-02-13T10:35:02.459-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube"/><title type='text'>YouTube Subscriptions fix bookmarklet</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;UPDATE: &lt;/span&gt;Apparently the problem is no longer relevant.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt3V0QLrW4FvwAyAsY9AqyUIjEz9M3yGut6YRyprm2t2FpjCRCRzbsvhyphenhyphenZLYrGyDCAjHuhJDXAM9qd6rdSHSNR3c_5l9Qe_6wKEZtOwKuYq0LDDPsa5rZo4DL3DmnC8nYEYpjBidguihAy/s1600-h/convert.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 99px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt3V0QLrW4FvwAyAsY9AqyUIjEz9M3yGut6YRyprm2t2FpjCRCRzbsvhyphenhyphenZLYrGyDCAjHuhJDXAM9qd6rdSHSNR3c_5l9Qe_6wKEZtOwKuYq0LDDPsa5rZo4DL3DmnC8nYEYpjBidguihAy/s400/convert.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5397215435509517954&quot; /&gt;&lt;/a&gt;Some time ago YouTube changed the links on &lt;a href=&quot;http://www.youtube.com/my_subscriptions&quot;&gt;http://www.youtube.com/my_subscriptions&lt;/a&gt; so that they would open in the same window even if you click it with the third button/wheel. As much as I tolerate other YouTube changes since Google acquired it, this is beyond me. Thus here is my modified version of the AdBlock+ bookmarklet that reverts the links to the way they were.&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;b&gt;Drag and drop one of these links to your bookmark toolbar:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;javascript:(function(){function R(w){try{var d=w.document,i,T,N,r=1,s; T=d.getElementsByTagName(&#39;a&#39;);for(i=T.length-1;(i+1)&amp;&amp;(N=T[i]);--i)if(N.className==&#39;title&#39;||N.className==&#39;video-thumb-120 no-quicklist&#39;){N.href=N.onclick.toString().slice(42,62);N.onclick=&#39;&#39;;}}catch(E){r=0}return r }R(self);})()&quot;&gt;YTSF 0.2&lt;/a&gt; - Chrome version (tested in Chrome 3.0.195.38)&lt;br /&gt;&lt;a href=&quot;javascript:(function(){function%20R(w){try{var%20d=w.document,i,T,N,r=1,s;T=d.getElementsByTagName(&#39;a&#39;);for(i=T.length-1;(i+1)&amp;&amp;(N=T[i]);--i)if(N.className==&#39;title&#39;||N.className==&#39;video-thumb-120 no-quicklist&#39;){N.href=N.onclick.toString().slice(45,64);N.onclick=&#39;&#39;;}}catch(E){r=0}return%20r}R(self);})()&quot;&gt;YTSF 0.2&lt;/a&gt; - Firefox version (tested in Firefox 3.5.3)&lt;br /&gt;&lt;br /&gt;The code:&lt;pre&gt;&lt;br /&gt;javascript&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;function&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;function&lt;/b&gt;&lt;/span&gt; R&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;w&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;   try&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;var&lt;/b&gt;&lt;/span&gt; d&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;w&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;document&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;i&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;T&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;r&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:BROWN;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;s&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;       T&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;d&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;getElementsByTagName&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:PURPLE;&quot;&gt;&quot;a&quot;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;i&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;T&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;length&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:BROWN;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;i&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:BROWN;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;T&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;[&lt;/b&gt;&lt;/span&gt;i&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;]&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;-&lt;/span&gt;&lt;/span&gt;i&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;className&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:PURPLE;&quot;&gt;&quot;title&quot;&lt;/span&gt; &lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;|&lt;/span&gt;&lt;/span&gt; N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;className&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:PURPLE;&quot;&gt;&quot;video-thumb-120 no-quicklist&quot;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;href&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;onclick&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;toString&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;slice&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:BROWN;&quot;&gt;42&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;,&lt;/b&gt;&lt;/span&gt;62&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; N&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;onclick&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:PURPLE;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;     catch&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;E&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;r&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:BROWN;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color:RED;&quot;&gt;&lt;b&gt;return&lt;/b&gt;&lt;/span&gt; r&lt;br /&gt;   &lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; R&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;self&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size:+1;color:BLUE;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The original AdBlock+ code can be found &lt;a href=&quot;http://www.googlechromeplugins.com/plugins-talk/block-for-google-chrome-out-t173.html&quot;&gt;here&lt;/a&gt; or &lt;a href=&quot;http://blogote.com/2008/featured-article/google-chrome-with-firefox-addon.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/1243213612732795622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2009/10/youtube-subscriptions-fix-bookmarklet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/1243213612732795622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/1243213612732795622'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2009/10/youtube-subscriptions-fix-bookmarklet.html' title='YouTube Subscriptions fix bookmarklet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt3V0QLrW4FvwAyAsY9AqyUIjEz9M3yGut6YRyprm2t2FpjCRCRzbsvhyphenhyphenZLYrGyDCAjHuhJDXAM9qd6rdSHSNR3c_5l9Qe_6wKEZtOwKuYq0LDDPsa5rZo4DL3DmnC8nYEYpjBidguihAy/s72-c/convert.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-3309548320448693266</id><published>2009-03-21T12:36:00.000-07:00</published><updated>2015-02-13T10:35:33.776-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="photoshop"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Make your own Photoshop patterns</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6LF7QJefT6Y6P6X_vixzrW0JlRIJ_dO4MeSwL8jBGIBLELROcZ0iQSFnejDfbcxN4dJnLcDWzSluzz7KY1OkRblLJ668CSVM7PfGax2VQq7hEg3jQmCuA-nsfQVeODNFRC76x83hJ6A-L/s1600-h/patterns.jpg&quot;&gt;&lt;img style=&quot;float:right;cursor:pointer; cursor:hand;width: 130px; height: 130px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6LF7QJefT6Y6P6X_vixzrW0JlRIJ_dO4MeSwL8jBGIBLELROcZ0iQSFnejDfbcxN4dJnLcDWzSluzz7KY1OkRblLJ668CSVM7PfGax2VQq7hEg3jQmCuA-nsfQVeODNFRC76x83hJ6A-L/s320/patterns.jpg&quot; border=&quot;0&quot; alt=&quot;Photoshop patterns&quot; id=&quot;BLOGGER_PHOTO_ID_5315739161766565170&quot; /&gt;&lt;/a&gt;You can find patterns on many websites.&lt;br /&gt;Designers often use them spice up their layouts.&lt;br /&gt;In this tutorial I will show you how to make your own patterns for your websites in Photoshop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Create a new transparent document in photoshop, the width and height varies from pattern to pattern. I specified the sizes for patterns below next to their names.&lt;br /&gt;&lt;br /&gt;Next zoom in to the max(&quot;Alt&quot; + &quot;Scroll Wheel&quot; or &quot;Ctrl&quot; + &quot;=&quot;) and select the pencil tool).&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4fUOjZMRdTPeDQ4WAC2Sp7kf03pDpWejZRMyfcyly3KLm49vIls0dvOsuuF1-q_gprg-N15gbOmdZGFrIBV4M2gkANYNkXo3ZkS2U8WzXXq7EwZyFOwGh3R_YQXYOU2kR7b6xJ0eEBL-/s1600-h/pencil.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 228px; height: 65px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4fUOjZMRdTPeDQ4WAC2Sp7kf03pDpWejZRMyfcyly3KLm49vIls0dvOsuuF1-q_gprg-N15gbOmdZGFrIBV4M2gkANYNkXo3ZkS2U8WzXXq7EwZyFOwGh3R_YQXYOU2kR7b6xJ0eEBL-/s320/pencil.jpg&quot; border=&quot;0&quot; alt=&quot;Photoshop pencil tool&quot; id=&quot;BLOGGER_PHOTO_ID_5315909550875963282&quot; /&gt;&lt;/a&gt;&lt;br /&gt;All that&#39;s left is to reproduce the pixels of your desired pattern.&lt;br /&gt;&lt;br /&gt;Once you&#39;re done, go to Edit-&gt;Define Pattern...&lt;br /&gt;Name your pattern and it&#39;s done.&lt;br /&gt;&lt;br /&gt;To test the new pattern you can use the &quot;Paint Bucket Tool&quot;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD3KdzAt6fLKAEHEd-tF6r84ynZwKzPzk-xQfc8ZA2j-GySw-K7R5qy0-QSC-v3ojp3TVJKxfp8SWzA2qpxT0ZcylKMkRQ3a4OacbPi_SOxyo5mtGKV3aprok8vusGLekqeDpelQ-HVcp1/s1600-h/paint-bucket.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 198px; height: 46px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD3KdzAt6fLKAEHEd-tF6r84ynZwKzPzk-xQfc8ZA2j-GySw-K7R5qy0-QSC-v3ojp3TVJKxfp8SWzA2qpxT0ZcylKMkRQ3a4OacbPi_SOxyo5mtGKV3aprok8vusGLekqeDpelQ-HVcp1/s320/paint-bucket.jpg&quot; border=&quot;0&quot; alt=&quot;paint bucket tool&quot; id=&quot;BLOGGER_PHOTO_ID_5315913666875740098&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Don&#39;t forget to select &quot;Pattern&quot; instead of &quot;Foreground&quot; in the tool options.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic6xs0CXPsUohoNMnMzu0z6M0Okz4u0ioZ9sQHmWIzvliHkg2bDPN9Y8Si_NXG_PXdMFdXdU5I25a4T62pgeJHih806i3tyZSeH0bV8Zv14hfWjmeRvdToDZwx59CVMWcLDTrY70S-gucI/s1600-h/pattern.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 194px; height: 64px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic6xs0CXPsUohoNMnMzu0z6M0Okz4u0ioZ9sQHmWIzvliHkg2bDPN9Y8Si_NXG_PXdMFdXdU5I25a4T62pgeJHih806i3tyZSeH0bV8Zv14hfWjmeRvdToDZwx59CVMWcLDTrY70S-gucI/s320/pattern.jpg&quot; border=&quot;0&quot; alt=&quot;paint bucket tool options&quot; id=&quot;BLOGGER_PHOTO_ID_5315916329336073426&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Or right click on a layer, click &quot;Blending Options&quot;.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl9tUeEUuRJU2jslIhd8enpzqGWdNDcsSBRxSdbWxSRsApsgHBcY85lswJk2-eiGmvzOillHigLw_q1dC6Qu31k5U2g3cJC_oHe618jYduvfQZejShrn9twbh8qRal_xEui7PM9262c4P/s1600-h/blending-options.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 102px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl9tUeEUuRJU2jslIhd8enpzqGWdNDcsSBRxSdbWxSRsApsgHBcY85lswJk2-eiGmvzOillHigLw_q1dC6Qu31k5U2g3cJC_oHe618jYduvfQZejShrn9twbh8qRal_xEui7PM9262c4P/s200/blending-options.jpg&quot; border=&quot;0&quot; alt=&quot;Blending options&quot; id=&quot;BLOGGER_PHOTO_ID_5315915462576755538&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Then go to &quot;Pattern Overlay&quot; and select the pattern you want to try out.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh0l9Os_LEWh0bI2OaV31JYVB2YYZQIsjpyEkbXnC7ciAiA93j7e0f6JlQONH7ZvaQKOqG9fBWI7vma6vCJYgVWpRK_Y2xkUVpX2KWaDlia5qMYFUKAFqKIJeDO_JTaTUo-qG8077jTguu/s1600-h/pattern-overlay.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 148px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh0l9Os_LEWh0bI2OaV31JYVB2YYZQIsjpyEkbXnC7ciAiA93j7e0f6JlQONH7ZvaQKOqG9fBWI7vma6vCJYgVWpRK_Y2xkUVpX2KWaDlia5qMYFUKAFqKIJeDO_JTaTUo-qG8077jTguu/s200/pattern-overlay.jpg&quot; border=&quot;0&quot; alt=&quot;Pattern overlay&quot; id=&quot;BLOGGER_PHOTO_ID_5315914413064316658&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;Pictures to the left are the patterns zoomed in, while pictures to the right are the previews of the way the pattern actually look.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Diagonal lines A (3x3 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1PKd4qyWUdR-W6trYXfiWqMiM5wu_Rntk6tXA6mBva-FIINRh2CJZWZSdAB4PxouGsgDiFL2b8MoOwa7Rn7Kg09UyiI6XaW8um98qcFUDMmIRcgWlcTNGhKZyk4_oii91V-8uOL_Y41_f/s1600-h/pattern1.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 96px; height: 96px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1PKd4qyWUdR-W6trYXfiWqMiM5wu_Rntk6tXA6mBva-FIINRh2CJZWZSdAB4PxouGsgDiFL2b8MoOwa7Rn7Kg09UyiI6XaW8um98qcFUDMmIRcgWlcTNGhKZyk4_oii91V-8uOL_Y41_f/s320/pattern1.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315728176039901010&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEogmEHsBLLqlfzznuBj8qiFKPCg7IFTuhoCFVTZk5UKD-lt-JMrhi-TGqAwx0FUFig87YLRyC3zw5EnO3seV8N5m1e9yLUhT5RObSqljH6k4TV6io5Xwcj5GMJ1hyphenhyphenBIPukC35-s9fQynG/s1600-h/pattern1-preview.jpg&quot;&gt;&lt;img style=&quot; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 96px; height: 96px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEogmEHsBLLqlfzznuBj8qiFKPCg7IFTuhoCFVTZk5UKD-lt-JMrhi-TGqAwx0FUFig87YLRyC3zw5EnO3seV8N5m1e9yLUhT5RObSqljH6k4TV6io5Xwcj5GMJ1hyphenhyphenBIPukC35-s9fQynG/s320/pattern1-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315728341736900546&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Diagonal lines B (3x3 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmcSBM_GhlZz0yKR1xdPFWSUceY8wji78ZhusyXWPiWonpeVNzKlE60TfsRJ4MnAf8m-MfaQJeqTfzVo71xeFwZox4xBEpPU1PgVmcFao6sSPlEqaoJb1xnG3DFAcuGzKCNSF6k1kf230u/s1600-h/pattern1a.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 96px; height: 96px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmcSBM_GhlZz0yKR1xdPFWSUceY8wji78ZhusyXWPiWonpeVNzKlE60TfsRJ4MnAf8m-MfaQJeqTfzVo71xeFwZox4xBEpPU1PgVmcFao6sSPlEqaoJb1xnG3DFAcuGzKCNSF6k1kf230u/s320/pattern1a.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315729020616978690&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiuS6GKZyo4295HohByEBkhCRMom1TRENyevpzQf3qCxPipNw_kDNR_djNbUllURmda2cTqcZcGKjc7zvq18ter5hTiDiHZNUsUMeyNouByFpUBkBt2CEKB5MJElSVCeROjBB4cmk7Bl5o/s1600-h/pattern1a-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 96px; height: 96px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiuS6GKZyo4295HohByEBkhCRMom1TRENyevpzQf3qCxPipNw_kDNR_djNbUllURmda2cTqcZcGKjc7zvq18ter5hTiDiHZNUsUMeyNouByFpUBkBt2CEKB5MJElSVCeROjBB4cmk7Bl5o/s320/pattern1a-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315729026587835138&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Thick diagonal lines (9x9 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3KJU00oJbaQHZ5GKEFhafo3_GqrEyQKeHS9row6s2St4qnCAdWe-VvvrxI_J0SF64wAxW5LdQXe74S5DURBGNHoqi1q2oUM_aQ3Ij2vaZbN6qVRS9Opg2aLuGPCs1NaQOEttJ-ZXtttbl/s1600-h/pattern2.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 92px; height: 92px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3KJU00oJbaQHZ5GKEFhafo3_GqrEyQKeHS9row6s2St4qnCAdWe-VvvrxI_J0SF64wAxW5LdQXe74S5DURBGNHoqi1q2oUM_aQ3Ij2vaZbN6qVRS9Opg2aLuGPCs1NaQOEttJ-ZXtttbl/s320/pattern2.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315729610682688050&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiid_HISekNJP0aeB-9DDUZ-_JoVlwQYTaVoiEb7TSl9X2mMkyWAX7kFSJi7qCFzzPOIWbBZci7JWoLr1AXJFEjjTIFE-cg0y3DBthEbeTI9rzHaHF0dKCH8aweqbBWOz6H2rT_2g5cyATO/s1600-h/pattern2-preivew.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 92px; height: 92px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiid_HISekNJP0aeB-9DDUZ-_JoVlwQYTaVoiEb7TSl9X2mMkyWAX7kFSJi7qCFzzPOIWbBZci7JWoLr1AXJFEjjTIFE-cg0y3DBthEbeTI9rzHaHF0dKCH8aweqbBWOz6H2rT_2g5cyATO/s320/pattern2-preivew.jpg&quot; border=&quot;0&quot; alt=&quot;Diagonal line pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315729610751676610&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Vertical lines (2x1 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCp1ygdWmsr4duczYoIGRyqoSfVwx74ry66TOFmCYTAFHziQePTclOC32FeyS85iFzHOsEoihK8DT4W92OHs_3FBd7EYYcCwu8GTol1CV1c119rdVqCf_1ygqcU65y58hvF-DvOVuFe2Jj/s1600-h/pattern3.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 64px; height: 32px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCp1ygdWmsr4duczYoIGRyqoSfVwx74ry66TOFmCYTAFHziQePTclOC32FeyS85iFzHOsEoihK8DT4W92OHs_3FBd7EYYcCwu8GTol1CV1c119rdVqCf_1ygqcU65y58hvF-DvOVuFe2Jj/s320/pattern3.jpg&quot; border=&quot;0&quot; alt=&quot;Vertical line pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315730209539354738&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ3ONoYPi-LF0zTONQjrw_gXedUtKiemSowfbI-CQncjrnUzxaMZ9chd4uJN9TVntPOMJB8lvLS6HXcA52tSSGOUo2cPHJOFTzXrxbE9z1PoBfnucd5AKRm8brDWQvB3XSJvU70ysZxVxA/s1600-h/pattern3-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 64px; height: 64px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ3ONoYPi-LF0zTONQjrw_gXedUtKiemSowfbI-CQncjrnUzxaMZ9chd4uJN9TVntPOMJB8lvLS6HXcA52tSSGOUo2cPHJOFTzXrxbE9z1PoBfnucd5AKRm8brDWQvB3XSJvU70ysZxVxA/s320/pattern3-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Vertical line pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315730214248277090&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Horizontal lines &quot;Scanlines&quot; (1x2 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgDWCF5w61ggmJkRwK3HbVM2qMFLMI8fk9sYWEHohx-V6hzUnsnX79xyDKzWSkwUEqxHMomcNmViOkyfz_9cNeo8TnyyPm86Sry6092htGw5rcUGvLHLGjyHXsbg8SdOhs7vhqrIe4WtVX/s1600-h/pattern3a.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 32px; height: 64px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgDWCF5w61ggmJkRwK3HbVM2qMFLMI8fk9sYWEHohx-V6hzUnsnX79xyDKzWSkwUEqxHMomcNmViOkyfz_9cNeo8TnyyPm86Sry6092htGw5rcUGvLHLGjyHXsbg8SdOhs7vhqrIe4WtVX/s320/pattern3a.jpg&quot; border=&quot;0&quot; alt=&quot;Horizontal line pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315730492691344194&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtunsIf34CDzrvjgvAXQYlOFn8Q3STdSfmyoj5zfutSk5n3xUJPjakYcm7A_Sle38vFoUlol7yNLYN5XbRCiQAUqdgZmupjWCYNT2AXKBZZWpYM-GOcswWDd3O73fpkVNh2GQ072GOtsft/s1600-h/pattern3a-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 64px; height: 64px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtunsIf34CDzrvjgvAXQYlOFn8Q3STdSfmyoj5zfutSk5n3xUJPjakYcm7A_Sle38vFoUlol7yNLYN5XbRCiQAUqdgZmupjWCYNT2AXKBZZWpYM-GOcswWDd3O73fpkVNh2GQ072GOtsft/s320/pattern3a-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Horizontal line pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315730496416621586&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Holes (10x10 pixels)&lt;/span&gt;&lt;br /&gt;These look nice on a colorfull background with the &quot;soft light&quot; blending mode.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSJaWoTLlh9byLSrUTDcqnyggc_mgg_WNslZBva96oxRpB2PVs3KD7xdo5xWkBk3Rxfxgg5OfD8janNvxzQkZidTri4d6rka-NS8oTwhTomq7zGzqyhjytquPt4yvteceWD4_Wg0hUcSP4/s1600-h/pattern4.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 130px; height: 130px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSJaWoTLlh9byLSrUTDcqnyggc_mgg_WNslZBva96oxRpB2PVs3KD7xdo5xWkBk3Rxfxgg5OfD8janNvxzQkZidTri4d6rka-NS8oTwhTomq7zGzqyhjytquPt4yvteceWD4_Wg0hUcSP4/s320/pattern4.jpg&quot; border=&quot;0&quot; alt=&quot;Hole pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315730858232305586&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEBcyBZT5PQ8a8dTqDsVqBXRdXNoSsmDdt4BMmcWuhv9q4waqfSDjXq0y7aRZnobKVGOU8ixZxgP4fK-j029LGcQAgC7cdwJ1p_H4Pgg_gYwZpsKrF76_4WvmwBfhTV6E8QTOEuymy_9wg/s1600-h/pattern4-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 130px; height: 130px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEBcyBZT5PQ8a8dTqDsVqBXRdXNoSsmDdt4BMmcWuhv9q4waqfSDjXq0y7aRZnobKVGOU8ixZxgP4fK-j029LGcQAgC7cdwJ1p_H4Pgg_gYwZpsKrF76_4WvmwBfhTV6E8QTOEuymy_9wg/s320/pattern4-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Hole pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315918914040120002&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Cells (10x10 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_7JpOkTqjnLpVIi5HjgVwJyku9-Guxji8wntl9wDRoZyQaUU0LYIn-IdtxrXKcqdlgZTpQlGR0YmyK2JrLj4x3Hdr_E0cmRqyBIb8kKKLHhuZJp7o2nsNc0Q1nl3PN_zUHAzXUcfv_o3V/s1600-h/pattern5.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 126px; height: 126px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_7JpOkTqjnLpVIi5HjgVwJyku9-Guxji8wntl9wDRoZyQaUU0LYIn-IdtxrXKcqdlgZTpQlGR0YmyK2JrLj4x3Hdr_E0cmRqyBIb8kKKLHhuZJp7o2nsNc0Q1nl3PN_zUHAzXUcfv_o3V/s320/pattern5.jpg&quot; border=&quot;0&quot; alt=&quot;Cell pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315731259069558178&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio5qmpn5zbKDHKOjVZWvFhdHl_fcX6EqsM1aET-cKfuq9vOB9uzTU7I_y3JEmrtkhOXzpKmFenzZ-qAnM2j6lRlsns34svBCi_EpEDTsy-t9rt7Nwd89-wdXDuVS-aZI5tvbpBq3NyqW2H/s1600-h/pattern5-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 126px; height: 126px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio5qmpn5zbKDHKOjVZWvFhdHl_fcX6EqsM1aET-cKfuq9vOB9uzTU7I_y3JEmrtkhOXzpKmFenzZ-qAnM2j6lRlsns34svBCi_EpEDTsy-t9rt7Nwd89-wdXDuVS-aZI5tvbpBq3NyqW2H/s320/pattern5-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Cell pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315731258656365650&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Carbon Fiber (4x4 pixels)&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0jbd2bH5JY0AMk9QK0QLtnm8WXgM6pZangtUYKP2ilCDONl3eUnlFCMpn3t4yP-rbLGNEQQiE2FnD5huyp7E2k_wdw1PODJWMDiOsMzh1856GxuhQEVMSwz65bZMPNi3cF4vVQxhR1mwv/s1600-h/pattern6-carbon-fibre.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0jbd2bH5JY0AMk9QK0QLtnm8WXgM6pZangtUYKP2ilCDONl3eUnlFCMpn3t4yP-rbLGNEQQiE2FnD5huyp7E2k_wdw1PODJWMDiOsMzh1856GxuhQEVMSwz65bZMPNi3cF4vVQxhR1mwv/s320/pattern6-carbon-fibre.jpg&quot; border=&quot;0&quot; alt=&quot;Carbon Fiber Photoshop pattern&quot; id=&quot;BLOGGER_PHOTO_ID_5315731551325355506&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7hpEi4oSNCC_U_BILSxm75-DvmRrg4ihzPCjubjwipzbvqgyKARLs830603PDfvpb_hCDNzOyqljh8l4GqRwfPlhKo1gyK7PWd4HElfyn7hWnch5YHSH04CmBtyK1W4iyDd3qSQwyun-O/s1600-h/pattern6-carbon-fibre-preview.jpg&quot;&gt;&lt;img style=&quot;margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7hpEi4oSNCC_U_BILSxm75-DvmRrg4ihzPCjubjwipzbvqgyKARLs830603PDfvpb_hCDNzOyqljh8l4GqRwfPlhKo1gyK7PWd4HElfyn7hWnch5YHSH04CmBtyK1W4iyDd3qSQwyun-O/s320/pattern6-carbon-fibre-preview.jpg&quot; border=&quot;0&quot; alt=&quot;Carbon Fiber Photoshop pattern preview&quot; id=&quot;BLOGGER_PHOTO_ID_5315731551831056802&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;TIP: &lt;/span&gt;Try experimenting by using different blending modes and styles on your pattern to make them look even better.&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/3309548320448693266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/make-your-own-photoshop-patterns.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/3309548320448693266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/3309548320448693266'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/make-your-own-photoshop-patterns.html' title='Make your own Photoshop patterns'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6LF7QJefT6Y6P6X_vixzrW0JlRIJ_dO4MeSwL8jBGIBLELROcZ0iQSFnejDfbcxN4dJnLcDWzSluzz7KY1OkRblLJ668CSVM7PfGax2VQq7hEg3jQmCuA-nsfQVeODNFRC76x83hJ6A-L/s72-c/patterns.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-7080903720087971062</id><published>2009-03-19T00:13:00.000-07:00</published><updated>2015-02-13T10:36:08.330-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Simple PHP website tutorial</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd67HQ3crxtH3oe400zIYDvJ1c4PRkf9zsiKLGmfcPSHyoh0BUr_Buk2IZUlRThB_vXPg4HjX08IgCNTjzbQ_VuJpBwngzkaKdpKAwTaJ0h0f5D8UD09x6hvW1gRtek0uDhsY-YYhkh8Uc/s1600/php.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd67HQ3crxtH3oe400zIYDvJ1c4PRkf9zsiKLGmfcPSHyoh0BUr_Buk2IZUlRThB_vXPg4HjX08IgCNTjzbQ_VuJpBwngzkaKdpKAwTaJ0h0f5D8UD09x6hvW1gRtek0uDhsY-YYhkh8Uc/s320/php.jpg&quot; /&gt;&lt;/a&gt;
If you ever tried making a simple website with only a handful of pages, you probably noticed that once you need to edit some menu element, you have to edit all of your pages, which can be very irritating.&lt;br /&gt;The simplest way to solve this problem without resorting to coding is using &lt;a href=&quot;http://www.w3schools.com/HTML/html_frames.asp&quot;&gt;frames&lt;/a&gt;. I encourage you not to do that. You can see &lt;a href=&quot;http://www.useit.com/alertbox/9612.html&quot;&gt;for&lt;/a&gt; &lt;a href=&quot;http://www.boutell.com/newfaq/creating/framesbad.html&quot;&gt;your&lt;/a&gt; &lt;a href=&quot;http://www.hobo-web.co.uk/tips/41.htm&quot;&gt;self&lt;/a&gt; &lt;a href=&quot;http://websitetips.com/articles/html/frames/&quot;&gt;why&lt;/a&gt;.&lt;br /&gt;Instead you can apply one of the following PHP techniques.&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;text-align: center;&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Content --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:320px;height:100px&quot;
     data-ad-client=&quot;ca-pub-2496738552176492&quot;
     data-ad-slot=&quot;9294046814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight:bold;color: rgb(204, 102, 0);&quot;&gt;1) The content include method&lt;/span&gt;&lt;br /&gt;In this method you put the unique content of your pages in different files like &quot;&lt;span style=&quot;font-weight:bold;&quot;&gt;news.html&lt;/span&gt;&quot;, &quot;&lt;span style=&quot;font-weight:bold;&quot;&gt;about.html&lt;/span&gt;&quot; etc. While the HTML that is the same for all the pages, like the menu, stays in &lt;span style=&quot;font-weight:bold;&quot;&gt;index.php&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To make this work you need to put the code that will load the contents of your pages into index.php. In PHP the &lt;span style=&quot;color:#007700;&quot;&gt; include()&lt;/span&gt; function is just what we need to do the job. Alternatively you can use &lt;span style=&quot;color:#007700;&quot;&gt; require()&lt;/span&gt;, it won&#39;t make &lt;a href=&quot;http://nevereverblog.blogspot.com/2009/03/include-require-includeonce-requireonce.html&quot;&gt;a big difference&lt;/a&gt;.&lt;br /&gt;Next, through our hyper links, we need to tell that function which file it should load into our main page. We need a variable for that, in this example I will call our variable &quot;page&quot; for the sake of simplicity. Which means that our links would look something like this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;&amp;lt;a href=&quot;index.php&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page1&quot;&amp;gt;Page1&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page2&quot;&amp;gt;Page2&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page3&quot;&amp;gt;Page3&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now we can work with the &lt;span style=&quot;color:#007700;&quot;&gt; include()&lt;/span&gt; function.&lt;br /&gt;As you probably noticed form our links above, the first link called &quot;Home&quot; doesn&#39;t assign any parameters to the &quot;page&quot; variable. To make &lt;span style=&quot;color:#007700;&quot;&gt; include()&lt;/span&gt; work and protect our website form the &lt;a href=&quot;http://en.wikipedia.org/wiki/Cross-site_scripting&quot;&gt;Cross-site scripting vulnerability&lt;/a&gt; at the same time we will use a &lt;span style=&quot;color:#007700;&quot;&gt; switch()&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#007700;&quot;&gt;switch(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]) {&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page1&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page1_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page2&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page2_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page3&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page3_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    default: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;home.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Since I chose to call the variable &quot;page&quot; the switch looks this way: &quot;&lt;code&gt;&lt;span style=&quot;color:#007700;&quot;&gt;switch(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;])&lt;/span&gt; {&lt;/code&gt;&quot; and the next four lines decide which file should be loaded depending on the value of the variable. So the line &lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page1&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page1_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;/span&gt;&lt;/code&gt; means: if the variable was set to &#39;page1&#39; then load page &#39;page1_content.html&#39;.&lt;br /&gt;But the last line: &lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;default: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;home.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/code&gt; means: if the variable &quot;page&quot; is set to anything else then home.html will be loaded.&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fullpost&quot;&gt;One more thing: we have to make sure that the variable &lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:-webkit-monospace;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:13px;&quot;&gt;$_GET&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:13px;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:13px;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:13px;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is set, else PHP will output an error. Therefore we will add this line before the &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 153, 0);&quot;&gt;switch()&lt;/span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:&#39;times new roman&#39;;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;if(!isset(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;])) &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]=&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;This line will define the variable &lt;span class=&quot;Apple-style-span&quot;  style=&quot;  ;font-family:-webkit-monospace;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;$_GET&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; in case it hasnt already been defined.&lt;br /&gt;(Thanks to Arthur for reminding me)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now if we put it all together we will get something similar to this:&lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;My Website&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page1&quot;&amp;gt;Page1&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page1&quot;&amp;gt;Page2&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;index.php?page=page1&quot;&amp;gt;Page3&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;if(!isset(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;])) &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]=&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;switch(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]) {&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page1&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page1_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page2&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page2_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    case &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;page3&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;page3_content.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); break;&lt;br /&gt;    default: include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;home.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/span&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;One of the disadvantages of this method is that all of your pages will have the same title, unless you&#39;re willing to write a little bit more code.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight:bold;color: rgb(204, 102, 0);&quot;&gt;2) The menu include method&lt;/span&gt;&lt;br /&gt;In this method you have your menu in a separate file like &#39;&lt;span style=&quot;font-weight:bold;&quot;&gt;menu.html&lt;/span&gt;&#39;, which you include on all of your html pages like &quot;index.php&quot;, &quot;about.php&quot; etc.  using this code:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;span style=&quot;color:#007700;&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;menu.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;So our typical page would look like this:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#0000CC;&quot;&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;My Website&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;span style=&quot;color:#007700;&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;menu.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h1&amp;gt; Hello and welcome to my website&amp;lt;/h1&amp;gt;&lt;br /&gt;The content of the page goes here.&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/span&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This way you can easily have different titles on different pages and easily change your menu on all the pages by editing one file.&lt;br /&gt;&lt;br /&gt;In case you have something on the bottom of the page like &quot;All rights reserved&quot; or &quot;This website is a registered trademark...&quot; which is the same on all the pages you can put it in separate file like &quot;footer.html&quot; and include it with the code:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;span style=&quot;color:#007700;&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;footer.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;?&gt;&lt;/span&gt;&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/7080903720087971062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/simple-php-website-tutorial.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/7080903720087971062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/7080903720087971062'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/simple-php-website-tutorial.html' title='Simple PHP website tutorial'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd67HQ3crxtH3oe400zIYDvJ1c4PRkf9zsiKLGmfcPSHyoh0BUr_Buk2IZUlRThB_vXPg4HjX08IgCNTjzbQ_VuJpBwngzkaKdpKAwTaJ0h0f5D8UD09x6hvW1gRtek0uDhsY-YYhkh8Uc/s72-c/php.jpg" height="72" width="72"/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5290168588330019105.post-6378543476157971222</id><published>2009-03-17T10:48:00.000-07:00</published><updated>2014-11-22T06:23:27.073-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>include, require, include_once, require_once</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSPOlRWbAG2X6Xq46GxxeHB42Pl9tLosNxjGhyphenhyphenNT0wFDaFtbJW0MEp2JyNVSdG6K9mK_EvVj2RgueGEqSOPraUtCaZSK_I8qh-Lo_wqkI4NtFNWmcv8gHNQv3sgA4SOZcmaVXvXIuJikQh/s1600/php.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSPOlRWbAG2X6Xq46GxxeHB42Pl9tLosNxjGhyphenhyphenNT0wFDaFtbJW0MEp2JyNVSdG6K9mK_EvVj2RgueGEqSOPraUtCaZSK_I8qh-Lo_wqkI4NtFNWmcv8gHNQv3sgA4SOZcmaVXvXIuJikQh/s320/php.jpg&quot; /&gt;&lt;/a&gt;When it comes to dividing and ruling your code, PHP has a confusing amount of standard functions to do the job. Take &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;include()&lt;/span&gt; for example. It works fine so why make the other copycats? &lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;To figure that one out there&#39;s no better place to go to than the &lt;a href=&quot;http://www.php.net/&quot;&gt;PHP.net&lt;/a&gt;. Once there search for the next big thing after include() - &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;require()&lt;/span&gt;. And there you have it,&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(51, 102, 255);&quot;&gt; the difference between include() and require() is the way the two handle their inability to load the specified file&lt;/span&gt;. Upon failing include() would only output a warning, whereas require() would result in a fatal error. &lt;div&gt;Therefore, if it is crucial to execute a certain script - &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;require() &lt;/span&gt;it, on the other hand if you can do without that script if PHP will fail to load it - &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;include()&lt;/span&gt; it.&lt;div&gt;&lt;br /&gt;&lt;div&gt;That being said we can move on to &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;incude_once()&lt;/span&gt; and &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;require_once()&lt;/span&gt; functions. The sole purpose of adding _once to require and include is to make sure they won&#39;t accidently repeat themselves. And in case the PHP interpreter will run in, let&#39;s say, require_once(&#39;myfile.php&#39;) two, three or more times it will simply ignore them, executing the script myfile.php only once. This can be very usefull when your code becomes too big and complex and you don&#39;t want PHP to go through the same scripts several times.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There&#39;s also the performance issue. When running _once() functions PHP has to check whether the file has already been included or not, but that only becomes an issue when you have hundreds of those.  So if you&#39;re interested you can find some controversial benchmark results by Googling something like &lt;a href=&quot;http://www.google.com/search?q=php+include+require+benchmark&quot;&gt;php include require benchmark&lt;/a&gt; or &lt;a href=&quot;http://www.google.com/search?q=include+vs+require+vs+include_once+vs+require+once&quot;&gt;include vs require vs include_once vs require once&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nevereverblog.blogspot.com/feeds/6378543476157971222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/include-require-includeonce-requireonce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/6378543476157971222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5290168588330019105/posts/default/6378543476157971222'/><link rel='alternate' type='text/html' href='http://nevereverblog.blogspot.com/2009/03/include-require-includeonce-requireonce.html' title='include, require, include_once, require_once'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSPOlRWbAG2X6Xq46GxxeHB42Pl9tLosNxjGhyphenhyphenNT0wFDaFtbJW0MEp2JyNVSdG6K9mK_EvVj2RgueGEqSOPraUtCaZSK_I8qh-Lo_wqkI4NtFNWmcv8gHNQv3sgA4SOZcmaVXvXIuJikQh/s72-c/php.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>