<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7122112799017743510</id><updated>2011-11-27T16:53:44.093-08:00</updated><category term='image upload'/><category term='php framework'/><category term='gallery'/><category term='html5gallery'/><category term='buttons'/><category term='2.3.3 version'/><category term='image resize'/><category term='php image resize'/><category term='icons'/><category term='html5'/><category term='php'/><category term='image-resize'/><category term='color palette fix'/><category term='wbb'/><category term='Woltlab Burning Board'/><category term='css3'/><category term='social'/><category term='framework'/><category term='image library'/><title type='text'>Php Coders</title><subtitle type='html'>One of them.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-4268060767785112862</id><published>2011-11-21T08:07:00.001-08:00</published><updated>2011-11-21T08:07:02.476-08:00</updated><title type='text'>Resize images on the fly in PHP</title><content type='html'>&lt;p&gt;To achieve this recipe, follow these simple steps:&lt;br /&gt;1. Get the script and save it on your computer (I assume you named it timthumb.php)&lt;br /&gt;2. Use a FTP program to connect to your server and create a new directory called scripts. Upload the timthumb.php file in it.&lt;br /&gt;3. Once done, you can display images like this:&lt;br /&gt;&lt;em&gt;&amp;lt;img src="/scripts/timthumb.php?src=/images/whatever.jpg&amp;amp;h=150&amp;amp;w=150&amp;amp;zc=1" alt="" /&amp;gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;In other words, you just have to call the timthumb.php file and pass your image as a parameter. same goes for desired width or height.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-4268060767785112862?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/4268060767785112862/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/11/to-achieve-this-recipe-follow-these.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/4268060767785112862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/4268060767785112862'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/11/to-achieve-this-recipe-follow-these.html' title='Resize images on the fly in PHP'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-5694982594816441447</id><published>2011-11-20T23:31:00.001-08:00</published><updated>2011-11-20T23:31:34.169-08:00</updated><title type='text'>ThinkUp – Open-source app that stores your social network activity in a
database</title><content type='html'>&lt;p&gt;ThinkUp is a free, open source web application that captures your posts, tweets, replies, retweets, friends, followers and links on social networks like Twitter and Facebook.&lt;br /&gt;&amp;nbsp;You can store your social activity in a database that you control, making it easy to search, sort, analyze, publish and display activity from your network. All you need is a web server that can run a PHP application.&lt;/p&gt;&lt;p&gt;&lt;embed height="350" type="application/x-shockwave-flash" width="425" src="http://www.youtube.com/v/LtlCpvM-xeE"&gt;&lt;/embed&gt;&lt;/p&gt;&lt;p&gt;Homepage: &lt;a href="http://thinkupapp.com/"&gt;http://thinkupapp.com/&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-5694982594816441447?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/5694982594816441447/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/11/thinkup-is-free-open-source-web.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/5694982594816441447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/5694982594816441447'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/11/thinkup-is-free-open-source-web.html' title='ThinkUp – Open-source app that stores your social network activity in a&#xA;database'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-7355411800101942270</id><published>2011-11-18T16:45:00.001-08:00</published><updated>2011-11-18T16:45:02.105-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='social'/><category scheme='http://www.blogger.com/atom/ns#' term='icons'/><category scheme='http://www.blogger.com/atom/ns#' term='buttons'/><title type='text'>Zocial – A CSS3 social button &amp; icon Sass framework</title><content type='html'>&lt;a href="http://zocialbuttons.com/"&gt;Zocial&lt;/a&gt; is a CSS3 social buttons set and vector icons with @font-face as a Sass mixin and is usable as a Compass extension. It includes buttons and icons for Twitter, Facebook, Google+, GitHub, RSS and Smashing Magazine.&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-8QD8OA1KXQw/Tsb7--7QQ4I/AAAAAAAAA9I/ePY2zI6oO9M/s1600/cvnewf.jpg" imageanchor="1" style=""&gt;&lt;img border="0" height="171" width="320" src="http://4.bp.blogspot.com/-8QD8OA1KXQw/Tsb7--7QQ4I/AAAAAAAAA9I/ePY2zI6oO9M/s320/cvnewf.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-7355411800101942270?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/7355411800101942270/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/11/zocial-css3-social-button-icon-sass.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7355411800101942270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7355411800101942270'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/11/zocial-css3-social-button-icon-sass.html' title='Zocial – A CSS3 social button &amp; icon Sass framework'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-8QD8OA1KXQw/Tsb7--7QQ4I/AAAAAAAAA9I/ePY2zI6oO9M/s72-c/cvnewf.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-1512119042382763217</id><published>2011-10-11T09:58:00.000-07:00</published><updated>2011-10-11T09:58:47.235-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='framework'/><category scheme='http://www.blogger.com/atom/ns#' term='php framework'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Best &amp; Popular PHP Frameworks</title><content type='html'>&lt;p&gt;PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. But often coding in PHP, or any language for that matter, can get rather monotonous and repetitive. That’s where a PHP framework can help.&lt;/p&gt;  &lt;p&gt;The idea behind a framework is to offer a design you can use across multiple applications. All applications have a number of basic things in common. A framework is designed to provide a structure for those common elements (database interaction, presentation layer, application logic) so you spend less time writing up database interface code or presentation-layer interfaces and more time writing the application itself. The architecture represented by breaking an application up in this fashion is referred to as Model-View-Controller (MVC). Model refers to your data, View to your presentation layer, and Controller refers to the application or business logic.&lt;/p&gt;  &lt;p&gt;In this article i have compiled a list of 14 best and popular PHP Frameworks which i think is best for developers, so give them a try and let me know if you like them.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://adroit.selfcontained.us/"&gt;1.Adroit Framework: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Adroit is a lightweight PHP 5 MVC framework that is geared towards helping you develop faster. The main motivation behind Adroit is to keep it simple, but provide useful features that developers want. Whether you’re just beginning web-application development, or a seasoned veteran, Adroit can help make that experience better.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.akelos.org/"&gt;2.Akelos Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;The Akelos PHP Framework is a web application development platform based on the MVC (Model View Controller) design pattern. Based on good practices, it allows you to:&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;Write views using Ajax easily&lt;/li&gt;    &lt;li&gt;Control requests and responses through a controller&lt;/li&gt;    &lt;li&gt;Manage internationalized applications&lt;/li&gt;    &lt;li&gt;Communicate models and the database using simple conventions.&lt;/li&gt;  &lt;/ul&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://cakephp.org/"&gt;3.CakePHP: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications.  Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://codeigniter.com/"&gt;4.CodeIgniter: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you’re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you’re tired of ponderously large and thoroughly undocumented frameworks then this is for you.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.lightvc.org/"&gt;5.LightVC Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;LightVC is a lightweight model-view-controller (MVC) framework without the model. This decoupling allows any model or object relation mapping (ORM) tool to be used, including none at all if one is not needed. LightVC is comparable to, although unlike, CakePHP, Code Igniter, symfony, Solar, and Zend Framework to name a few. It’s major difference is that it does not try to be a full “Web framework” and instead tries to solve the need for an MVC that isn’t coupled to other tools.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://opendelight.org/"&gt;6.Opendelight Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Opendelight is an Open Source PHP Application Development Framework. It encompasses the multi-tier architecture of web, and enables entreprise-grade web application development really fast and easy.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.pradosoft.com/"&gt;7.Prado Framework: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;    PRADO is a component-based and event-driven programming framework for developing Web applications in PHP 5. PRADO stands for     &lt;strong&gt;P&lt;/strong&gt;    HP     &lt;strong&gt;R&lt;/strong&gt;    apid    &lt;strong&gt; A&lt;/strong&gt;    pplication     &lt;strong&gt;D&lt;/strong&gt;    evelopment     &lt;strong&gt;O&lt;/strong&gt;    bject-oriented.   The sole requirement to run PRADO-based applications is a Web server supporting PHP 5.1.0 or higher.PRADO is free. You can use it to develop either open source or commercial applications.  &lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://clickontyler.com/simple-php-framework/"&gt;8.Simple PHP Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;The Simple PHP Framework is a pragmatic approach to building websites with PHP 5. It’s geared towards web design shops and freelance programmers looking for a common foundation to quickly bring web projects to life. Without getting too technical, SPF follows the no-framework Framework method coined by Rasmus Lerdorf – with a little Active Record thrown in for good measure.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.symfony-project.org/"&gt;9.Symfony:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Symfony is a full-stack framework, a library of cohesive classes written in PHP. It provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise. Symfony is based on experience. It does not reinvent the wheel: it uses most of the best practices of web development and integrates some great third-party libraries.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.recessframework.org/"&gt;10.Recess Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Recess is a restful PHP framework that provides a fun and enjoyable development experience for beginner and seasoned developers alike. If you want a full featured restful web application without having to master the command line or learn complicated deployment recipes, Recess is for you. Recess is fast, light-weight, and has a very small footprint—ideal for LAMP development and drag-and-drop deployment to shared hosts. Recess is a modern framework that uses a loosely-coupled Model-View-Controller architecture designed and optimized specifically for PHP 5.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.yiiframework.com/"&gt;11.Yii Framework: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Yii is a free, open-source Web application development framework written in PHP5 that promotes clean, DRY design and encourages rapid development. It works to streamline your application development and helps to ensure an extremely efficient, extensible, and maintainable end product. Being extremely performance optimized, Yii is a perfect choice for any sized project. However, it has been built with sophisticated, enterprise applications in mind. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application, and has clear and comprehensive documentation.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://framework.zend.com/"&gt;12.Zend Framework:&lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;    Extending the art &amp;amp; spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications &amp;amp; web services, and consuming widely available APIs from leading vendors like     &lt;a href="http://code.google.com/apis/gdata" target="_blank"&gt;Google&lt;/a&gt;    ,     &lt;a href="http://aws.amazon.com/" target="_blank"&gt;Amazon&lt;/a&gt;    ,     &lt;a href="http://developer.yahoo.com/" target="_blank"&gt;Yahoo!&lt;/a&gt;    ,     &lt;a href="http://flickr.com/services/" target="_blank"&gt;Flickr&lt;/a&gt;    , as well as API providers and cataloguers like     &lt;a href="http://www.strikeiron.com/" target="_blank"&gt;StrikeIron&lt;/a&gt;     and ProgrammableWeb.  &lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://zephyr-php.sourceforge.net/"&gt;13.zephyr Framework: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;zephyr is an ajax based framework for php5 developers. you can easily develop business applications using this robust framework. this is extremely easy to learn and very simple to implement. you can deliver a full fledged ajax application with strong business layer in backend within some minutes. installation and deployment of packages that you develop for zephyr is hassle free. moreover you will get all the features of most popular templating engine “smarty” and powerfull data access layer “adoDB”.&lt;/p&gt;  &lt;p&gt;    &lt;strong&gt;      &lt;a href="http://www.zoopframework.com/"&gt;14.Zoop Framework: &lt;/a&gt;    &lt;/strong&gt;  &lt;/p&gt;  &lt;p&gt;Zoop has been in development since 2001 and in use for the last 6 years in a number of different production environments. While it predates the recent proliferation of PHP frameworks, it’s based on solid MVC principles, including separation of display, logic, and data layers. It’s designed to be efficient, modular, and extensible, striking a balance between lightweight and fully-featured.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-1512119042382763217?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/1512119042382763217/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/10/best-popular-php-frameworks.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/1512119042382763217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/1512119042382763217'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/10/best-popular-php-frameworks.html' title='Best &amp; Popular PHP Frameworks'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-850977800321471432</id><published>2011-08-14T23:12:00.000-07:00</published><updated>2011-08-14T23:14:15.470-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='image upload'/><title type='text'>Image uploading in PHP</title><content type='html'>Simple image uploading script in PHP.&lt;br /&gt;First; create a file, and copy-paste above code into this file. &amp;nbsp;After your form is fine, create a new file that named &lt;b&gt;upload.php &lt;/b&gt;this file contains our main uploading action. When you are done, create a folder where we store images. That is all, now you can upload images.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="c" style="font-family: monospace;"&gt;&lt;br /&gt;&amp;lt;!-- Form Area --&amp;gt;  &lt;br /&gt;&amp;lt;form enctype=  &lt;span style="color: red;"&gt;"multipart/form-data"&lt;/span&gt;   action=  &lt;span style="color: red;"&gt;"upload.php"&lt;/span&gt;   method=  &lt;span style="color: red;"&gt;"post"&lt;/span&gt;  &amp;gt;   &lt;br /&gt;Select Image: &amp;lt;input type=  &lt;span style="color: red;"&gt;"file"&lt;/span&gt;   name=  &lt;span style="color: red;"&gt;"userfile"&lt;/span&gt;  &amp;gt;   &lt;br /&gt;&amp;lt;input type=  &lt;span style="color: red;"&gt;"submit"&lt;/span&gt;   value=  &lt;span style="color: red;"&gt;"Upload!"&lt;/span&gt;  &amp;gt;   &lt;br /&gt;&amp;lt;/form&amp;gt;   &lt;br /&gt;&amp;lt;!-- Form Area --&amp;gt;  &lt;/div&gt;&lt;br /&gt;&lt;div class="c" style="font-family: monospace;"&gt;&lt;br /&gt;&amp;lt;?php   &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339933;"&gt;# Variables&lt;/span&gt;  &lt;br /&gt;$path =   &lt;span style="color: red;"&gt;"images/"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;$max_size =   &lt;span style="color: red;"&gt;"200000"&lt;/span&gt;  ;   &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339933;"&gt;# File&lt;/span&gt;  &lt;br /&gt;$filename = $_POST  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ;   &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339933;"&gt;# Control&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  !isset  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;   exit;   &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  is_uploaded_file  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'tmp_name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'size'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &amp;gt;$max_size  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"The File is Too Big. The Max File Size is $max_size KB&amp;lt;br&amp;gt;n"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;exit;&amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339933;"&gt;# Type Control&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ==  &lt;span style="color: red;"&gt;"image/gif"&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &amp;nbsp; &amp;nbsp;||&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ==  &lt;span style="color: red;"&gt;"image/jpg"&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &amp;nbsp; &amp;nbsp;||&amp;nbsp; &amp;nbsp;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ==  &lt;span style="color: red;"&gt;"image/bmp"&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &amp;nbsp; &amp;nbsp;||   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ==  &lt;span style="color: red;"&gt;"image/png"&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &amp;nbsp; &amp;nbsp;||   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  ==  &lt;span style="color: red;"&gt;"image/jpeg"&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339933;"&gt;# If File Exist&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  file_exists  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $path . $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"A File With That Name Already Exists!&amp;lt;br&amp;gt;"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;exit;&amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;$res = copy  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  $HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'tmp_name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  , $path .   &lt;br /&gt;&lt;br /&gt;$HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  ;   &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;  !$res  &lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"Upload Failed!&amp;lt;br&amp;gt;"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;exit;&amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"Upload Sucessful!&amp;lt;br&amp;gt;"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;echo   &lt;span style="color: red;"&gt;"File Name: "&lt;/span&gt;  .$HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  .  &lt;span style="color: red;"&gt;"&amp;lt;br&amp;gt;"&lt;/span&gt;  ;   &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"File Size: "&lt;/span&gt;  .$HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'size'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  .  &lt;span style="color: red;"&gt;" bytes&amp;lt;br&amp;gt;"&lt;/span&gt;  ;   &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"File Type: "&lt;/span&gt;  .$HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'type'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  .  &lt;span style="color: red;"&gt;"&amp;lt;br&amp;gt;"&lt;/span&gt;  ;   &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"&amp;lt;a href=$path"&lt;/span&gt;  .$HTTP_POST_FILES  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'userfile'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;[&lt;/span&gt;  &lt;span style="color: red;"&gt;'name'&lt;/span&gt;  &lt;span style="color: #66cc66;"&gt;]&lt;/span&gt;  .  &lt;span style="color: red;"&gt;"&amp;gt;View Image&amp;lt;/a&amp;gt;"&lt;/span&gt;  ;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;  &lt;br /&gt;echo   &lt;span style="color: red;"&gt;"Wrong File Type&amp;lt;br&amp;gt;"&lt;/span&gt;  ;&amp;nbsp;   &lt;br /&gt;exit;&amp;nbsp;   &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;?&amp;gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-850977800321471432?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/850977800321471432/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/08/image-uploading-in-php.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/850977800321471432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/850977800321471432'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/08/image-uploading-in-php.html' title='Image uploading in PHP'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-8269476350016429312</id><published>2011-08-14T12:06:00.000-07:00</published><updated>2011-08-14T12:11:30.474-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='css3'/><category scheme='http://www.blogger.com/atom/ns#' term='html5gallery'/><category scheme='http://www.blogger.com/atom/ns#' term='html5'/><category scheme='http://www.blogger.com/atom/ns#' term='gallery'/><title type='text'>HTML5Gallery</title><content type='html'>My personal project developed with PHP to resize image, Javascript with CSS3 and HTML5 markup language.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-oD6fJkoZ1EU/TkgdXe8yWSI/AAAAAAAAAmw/7mNaBg4MJFQ/s1600/html5gallery.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 262px;" src="http://2.bp.blogspot.com/-oD6fJkoZ1EU/TkgdXe8yWSI/AAAAAAAAAmw/7mNaBg4MJFQ/s320/html5gallery.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5640790822563764514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can get the experimental project source from bitbucket: https://bitbucket.org/mustafaoguz/html5gallery&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-8269476350016429312?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/8269476350016429312/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/08/html5gallery.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/8269476350016429312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/8269476350016429312'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/08/html5gallery.html' title='HTML5Gallery'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-oD6fJkoZ1EU/TkgdXe8yWSI/AAAAAAAAAmw/7mNaBg4MJFQ/s72-c/html5gallery.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-3519853433730993846</id><published>2011-08-09T00:51:00.000-07:00</published><updated>2011-08-11T12:34:56.065-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image library'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>WideImage - PHP library for image manipulation</title><content type='html'>WideImage is an object-oriented library for image manipulation. It requires PHP 5.2+ with GD2 extension. The library provides a simple way to loading, manipulating and saving images in the most common image formats.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://wideimage.sourceforge.net/"&gt;Download / Homepage&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Usage;&lt;br /&gt;&lt;code&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;font color="#FF0000"&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#000000"&gt;WideImage&lt;/font&gt;::load(&lt;font color="#008000"&gt;'big.png'&lt;/font&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;resize(&lt;b&gt;&lt;font color="#008080"&gt;50&lt;/font&gt;&lt;/b&gt;&lt;font color="#000000"&gt;,&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;b&gt;&lt;font color="#008080"&gt;30&lt;/font&gt;&lt;/b&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;saveToFile(&lt;font color="#008000"&gt;'small.jpg'&lt;/font&gt;&lt;font color="#000000"&gt;);&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#000000"&gt;WideImage&lt;/font&gt;::load(&lt;font color="#008000"&gt;'pic.jpg'&lt;/font&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;crop(&lt;font color="#008000"&gt;'center'&lt;/font&gt;&lt;font color="#000000"&gt;,&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#008000"&gt;'center'&lt;/font&gt;&lt;font color="#000000"&gt;,&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;b&gt;&lt;font color="#008080"&gt;90&lt;/font&gt;&lt;/b&gt;&lt;font color="#000000"&gt;,&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;b&gt;&lt;font color="#008080"&gt;50&lt;/font&gt;&lt;/b&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;output(&lt;font color="#008000"&gt;'png'&lt;/font&gt;&lt;font color="#000000"&gt;);&lt;/font&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;?&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;It seems pretty good and has good documentation. I am going to use it for my next project.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-3519853433730993846?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/3519853433730993846/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/08/wideimage-php-library-for-image.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/3519853433730993846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/3519853433730993846'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/08/wideimage-php-library-for-image.html' title='WideImage - PHP library for image manipulation'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-7203509710398107915</id><published>2011-08-09T00:38:00.000-07:00</published><updated>2011-08-09T00:48:38.949-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image resize'/><category scheme='http://www.blogger.com/atom/ns#' term='php image resize'/><category scheme='http://www.blogger.com/atom/ns#' term='image-resize'/><title type='text'>Image-Resize class for PHP</title><content type='html'>Resizing images in PHP is easier with Image-Resize class. You can use it to create thumbnail images or resizing big images to desired size.&lt;br /&gt;&lt;br /&gt;To use, just include image.class.php to your PHP file or where you are using resizing function. Then create new variable with an iresize() class object then use functions which comes with Image-resize class.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Example usage;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;font color="#FF0000"&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;b&gt;&lt;font color="#000000"&gt;require&lt;/font&gt;&lt;/b&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#008000"&gt;&amp;quot;image.class.php&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#550000"&gt;$resize&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#000000"&gt;=&lt;/font&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;b&gt;&lt;font color="#000000"&gt;new&lt;/font&gt;&lt;/b&gt;&lt;font color="#008080"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#000000"&gt;iresize&lt;/font&gt;();&lt;br /&gt;&lt;font color="#008080"&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#550000"&gt;$resize&lt;/font&gt;&lt;font color="#000000"&gt;-&amp;gt;&lt;/font&gt;img(&lt;font color="#008000"&gt;&amp;quot;test.jpg&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;size(&lt;font color="#008000"&gt;&amp;quot;500x500&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;)-&amp;gt;&lt;/font&gt;render(&lt;font color="#008000"&gt;&amp;quot;test-resized.jpg&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;);&lt;/font&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;?&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Explaination;&lt;/span&gt;&lt;br /&gt;iresize-&gt;img($source_filename) is where we are loading image to resize&lt;br /&gt;-&gt;size("500x500") is for entering desired image size&lt;br /&gt;-&gt;render("test-resized.jpg") is for final result. emptry/filename with extension&lt;br /&gt;&lt;br /&gt;&lt;a href="https://bitbucket.org/mustafaoguz/image-resize/overview"&gt;&lt;span style="font-weight:bold;"&gt;Download / Source&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-7203509710398107915?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/7203509710398107915/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2011/08/image-resize-class-for-php.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7203509710398107915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7203509710398107915'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2011/08/image-resize-class-for-php.html' title='Image-Resize class for PHP'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-6398645069436013572</id><published>2009-09-14T07:48:00.000-07:00</published><updated>2009-09-14T08:03:21.911-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Php Tips</title><content type='html'>You can write less code for same result and It is more understandable.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$var = $var + 1;  // Add 1 to $var&lt;br /&gt;$var ++; // Gives same result&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Also work with this;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$var = $var - 1; // Sub 1 to $var&lt;br /&gt;$var --; // Gives same result &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$var = "It"&lt;br /&gt;$var = $var + " can be..."; // Result : It can be...&lt;br /&gt;$var .= " can be..."; // Result : It can be...&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Shortcut for If Else;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;if($var != "page"){&lt;br /&gt;   $out ++; // Add 1 to $out&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if($var != "page") $out ++; // Gives same result (Add 1 to $out)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Much more is coming soon. (:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-6398645069436013572?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/6398645069436013572/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2009/09/php-tips.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/6398645069436013572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/6398645069436013572'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2009/09/php-tips.html' title='Php Tips'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-8652320295060473306</id><published>2009-06-04T15:34:00.000-07:00</published><updated>2009-06-04T15:37:21.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2.3.3 version'/><category scheme='http://www.blogger.com/atom/ns#' term='color palette fix'/><category scheme='http://www.blogger.com/atom/ns#' term='Woltlab Burning Board'/><category scheme='http://www.blogger.com/atom/ns#' term='wbb'/><title type='text'>Woltlab Burning Board 2.3.3 Color Palette Fix for Opera</title><content type='html'>There is a bug or lack or anything but user can not set color with color palette. Here is fix for this issue If you are using wBB 2.3.x&lt;br /&gt;&lt;br /&gt;1- Open your &lt;span style="font-weight:bold;"&gt;acp/templates/designpack_colorchooser.htm&lt;/span&gt; file with your text editor&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2- Find this block;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;x = 4 * ((document.all ? event.offsetX : e.layerX)-2);&lt;br /&gt;y = 4 * ((document.all ? event.offsetY : e.layerY)-2+5);&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3- Replace with this code;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;e=window.event;      // added&lt;br /&gt;e.layerX=e.offsetX;  // added&lt;br /&gt;e.layerY=e.offsetY;  // added&lt;br /&gt;&lt;br /&gt;x = 4 * ((document.all ? event.offsetX : e.layerX)-2);&lt;br /&gt;y = 4 * ((document.all ? event.offsetY : e.layerY)-2+5);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;4- Do the same things for &lt;span style="font-weight:bold;"&gt;Cache/templates/acp/designpack_colorchooser.htm&lt;/span&gt; file&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Woltlab Burning Board 2.3.3 admin panelinde kullanılan Renk paleti Opera ile düzgün çalışması için yapılmış küçük bir güncelleme.&lt;br /&gt;&lt;br /&gt;1- &lt;span style="font-weight:bold;"&gt;acp/templates/designpack_colorchooser.htm&lt;/span&gt; dosyasını Text editörü ile açın&lt;br /&gt;&lt;br /&gt;2- Bu kod satırını bulun;&lt;br /&gt;&lt;pre&gt;x = 4 * ((document.all ? event.offsetX : e.layerX)-2);&lt;br /&gt;y = 4 * ((document.all ? event.offsetY : e.layerY)-2+5);&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3- Bu kod ile değiştirin;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;e=window.event;      // eklendi&lt;br /&gt;e.layerX=e.offsetX;  // eklendi&lt;br /&gt;e.layerY=e.offsetY;  // eklendi&lt;br /&gt;&lt;br /&gt;x = 4 * ((document.all ? event.offsetX : e.layerX)-2);&lt;br /&gt;y = 4 * ((document.all ? event.offsetY : e.layerY)-2+5);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;4- Aynı şeyi &lt;span style="font-weight:bold;"&gt;Cache/templates/acp/designpack_colorchooser.htm &lt;/span&gt;dosyası içinde yapın. Artık renk paletini Opera tarayıcısı ile birlikte rahatlıkla kullanabilirsiniz.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-8652320295060473306?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/8652320295060473306/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2009/06/woltlab-burning-board-233-color-palette.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/8652320295060473306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/8652320295060473306'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2009/06/woltlab-burning-board-233-color-palette.html' title='Woltlab Burning Board 2.3.3 Color Palette Fix for Opera'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-3633124502914447104</id><published>2009-05-03T18:02:00.000-07:00</published><updated>2009-05-03T18:14:07.488-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>While Loop in Php</title><content type='html'>While loop saves your time. If you want to print all mysql rows, all value in array, you can use While loop.&lt;br /&gt;&lt;br /&gt;Simple Example;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$i = 0;&lt;br /&gt;while ( $i &lt;= 10 ) {&lt;br /&gt; echo "Number: " . $i;&lt;br /&gt; $i++;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;First; we defined $i as '0'. After we started the While loop statement. If $i number is less or equal to '10', process will continue. If $i number equals to '10', process will end and PHP will continue to generate page.&lt;br /&gt;&lt;br /&gt;Here is other syntax.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$i = 1;&lt;br /&gt;while ($i &lt;= 10):&lt;br /&gt;    echo $i;&lt;br /&gt;    $i++;&lt;br /&gt;endwhile;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;While, Foreach, For Next loop statement are save your time to listing any mysql result.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-3633124502914447104?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/3633124502914447104/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2009/05/while-loop-in-php.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/3633124502914447104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/3633124502914447104'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2009/05/while-loop-in-php.html' title='While Loop in Php'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-333587983811489938</id><published>2009-02-04T06:29:00.000-08:00</published><updated>2009-02-04T07:30:55.824-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Auto Resize image With PHP</title><content type='html'>Most of time, It makes me angry. Open image, resize and then upload again. If you believe you fixed the size issue, but after updating web site, you can see, product image is overflow. Download all image again, and resize it to true size and upload it again.&lt;br /&gt;&lt;br /&gt;Then I wrote this function for along time ago. It is loading image and resizing what you want with picture quality. So, you can reduce image size and you can fix your image overflow issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Here is PHP function code;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;span class="webhtml1-specialphpmarker"&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt;/**&lt;br /&gt; * &lt;/span&gt;&lt;span class="webhtml1-phpdoccommenttag"&gt;@author&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt; PCoder&lt;br /&gt; * &lt;/span&gt;&lt;span class="webhtml1-phpdoccommenttag"&gt;@copyright&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt; 2009&lt;br /&gt; * Auto Resized Image / Thumb&lt;br /&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;function&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; &lt;/span&gt;&lt;span class="webhtml1-phpidentifier"&gt;resize&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$dosya&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yukseklik&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$genislik&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$kalite&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;)&lt;br /&gt;{&lt;br /&gt;    &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$boyut&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;GetImageSize&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$dosya&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Get image Width and Height */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_genis&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$boyut&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;[&lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;0&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;];&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Real image width */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_yuksek&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$boyut&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;[&lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;1&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;];&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Real image height */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;if&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; (&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_genis&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; &amp;gt; &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_yuksek&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;) {&lt;br /&gt;         &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* If width is bigger than height */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;        &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_y&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;ceil&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;((&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$genislik&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; * &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_yuksek&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;) / &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_genis&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;        &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_x&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yukseklik&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;;&lt;br /&gt;    } &lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;else&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; {&lt;br /&gt;         &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* If height is bigger than width */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;        &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_y&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;ceil&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;((&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yukseklik&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; * &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_genis&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;) / &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_yuksek&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;        &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_x&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$genislik&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$image_p&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;imagecreatetruecolor&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_x&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_y&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Create image with new size */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$image&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;imagecreatefromjpeg&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$dosya&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Load file from server that defined */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;imagecopyresampled&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$image_p&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$image&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;0&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;0&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;0&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;0&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_x&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$yeni_y&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_genis&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;,&lt;br /&gt;        &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$resim_yuksek&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Entegret the new sized image with loaded file */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;imagejpeg&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$image_p&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;null&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;, &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$kalite&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Create JPG file */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt;    &lt;/span&gt;&lt;span class="webhtml1-phpfunction"&gt;Header&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-phpstring"&gt;&amp;quot;Content-type: image/jpeg&amp;quot;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;     &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Some browser don't display image, this header() function fix it */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-specialphpmarker"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Just use this function with your var;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;span class="webhtml1-specialphpmarker"&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt; &lt;span class="webhtml1-phpidentifier"&gt;resize&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-phpstring"&gt;&amp;quot;logo.jpg&amp;quot;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;,&lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;150&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;,&lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;150&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;,&lt;/span&gt;&lt;span class="webhtml1-phpnumber"&gt;90&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-specialphpmarker"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-333587983811489938?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/333587983811489938/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2009/02/auto-resize-image-with-php.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/333587983811489938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/333587983811489938'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2009/02/auto-resize-image-with-php.html' title='Auto Resize image With PHP'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7122112799017743510.post-7841186483475514964</id><published>2009-02-03T10:04:00.001-08:00</published><updated>2009-02-04T07:31:06.578-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>What is PHP?</title><content type='html'>PHP is a popular programming language for extending web pages with dynamic features. It is using small and big company, big project or very small project. It has wide-range usability. Youtube, Facebook and Joomla is written with PHP.&lt;br /&gt;&lt;br /&gt;Php is powerfull and free. So, Everyone can use it for commercial. You can run your PHP script most of OS. Mac, Windows or Unix. You must just configure your server for PHP.&lt;br /&gt;&lt;br /&gt;Php can be use with MySQL, MSSQL or other database. You can create your own dynamic web site in short time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Here is simple PHP example;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;span class="webhtml1-specialphpmarker"&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt;/**&lt;br /&gt; * &lt;/span&gt;&lt;span class="webhtml1-phpdoccommenttag"&gt;@author&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt; PCoder&lt;br /&gt; * &lt;/span&gt;&lt;span class="webhtml1-phpdoccommenttag"&gt;@copyright&lt;/span&gt;&lt;span class="webhtml1-phpdoccomment"&gt; 2009&lt;br /&gt; * Php Hello World&lt;br /&gt; */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;echo&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-phpstring"&gt;&amp;quot;Hello World &amp;quot;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;); &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Result: Hello World */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;Print&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;(&lt;/span&gt;&lt;span class="webhtml1-phpstring"&gt;&amp;quot;Hello World &amp;quot;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;); &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* Result: Hello World */&lt;br /&gt;&lt;br /&gt;/* Define a var for Hello World */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$var&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; = &lt;/span&gt;&lt;span class="webhtml1-phpstring"&gt;&amp;quot;Hello World &amp;quot;&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;echo&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$var&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;; &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* You can use this : echo($var); */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-phpkeyword"&gt;print&lt;/span&gt;&lt;span class="webhtml1-phpwhitespace"&gt; &lt;/span&gt;&lt;span class="webhtml1-specialphpvariableprefix"&gt;$var&lt;/span&gt;&lt;span class="webhtml1-phpsymbol"&gt;; &lt;/span&gt;&lt;span class="webhtml1-phpcomment"&gt;/* You can use this : print($var); */&lt;br /&gt;&lt;/span&gt;&lt;span class="webhtml1-specialphpmarker"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7122112799017743510-7841186483475514964?l=pcoder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pcoder.blogspot.com/feeds/7841186483475514964/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://pcoder.blogspot.com/2009/02/denemedir.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7841186483475514964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7122112799017743510/posts/default/7841186483475514964'/><link rel='alternate' type='text/html' href='http://pcoder.blogspot.com/2009/02/denemedir.html' title='What is PHP?'/><author><name>BusteR</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-R1-Jgli_wuM/TkbdR1P6TZI/AAAAAAAAAmM/_mkSkU1BBg0/s220/225398_175342762519016_136677139718912_386453_5079292_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
