1stwebdesigner |
30+ Best Websites to Download Free PSD Files Posted: 07 Oct 2010 02:00 PM PDT Today I would like to share the best websites for downloading PSD graphics. PSD files are very useful resources for learning purpose because you can see all the layers and also what techniques have been used to create the work. Some of the listed websites will be well known, but you’ll be surprised that they provide free PSD files. I hope you will like this collection and find it useful. 1. 365psd365psd.com is one of the best free PSD files provider on the web, I think. They share highest quality and pixel-perfect PSD files. 2. Free PSD FilesAnother professional and clean looking website sharing PSD files. Really worth checking. 3. Design InstructDesign Instruct mostly known for sharing creative tutorials, but they let you download all the tutorial files, that means you can download final result shown in the tutorial. 4. psdGraphicspsdGraphics shares very nice PSD files, templates and even tutorials. Very clean and elegant website design helps you to find everything very fast. 5. Official PSDsA lot of PSD files available for free download. You have to register to download their files. 6. Photoshop FilesPhotoshop Files is a PSD files community, where you can download files after registering or upload your own work. 7. Download PSDShowcase style website sharing PSD files, very creative use of Photoshop environment used in this website design. 8. FreePSDFreePSD is another great source for downloading free PSDs. If you want premium quality they also have something to offer. 9. Tutorial9Elite tutorial blog in design community. They provide wonderful and original tutorials and the best part – they share PSDs. 10. deviantARTdeviantART has definitely the biggest PSD files collection on the web. All the files are created by DA community members. 11. GraphicsFuelDesign blog shares a lot unique and unusual but useful PSD files, check this out. 12. Ps GalaxyAnother one PSD graphics showcase style website with voting system. Sharing PSDs, gradients, custom shapes, Photoshop actions and much more. 13. Six RevisionsCheck Tutorials category on Six Revisions and you’ll see how much quality tutorials they have, the best part is – they let you download source files. 14. PSD VibeClean and modern style tutorials with free PSDs available. 15. AbduzeedoAbduzeedo mostly known for inspirational posts but they also provide high quality tutorials and of course free PSDs. 16. DeviseFunctionProfessional web designer blog where he shares his knowledge in tutorials. You can download tutorial files for free. 17. PSDhomePSDhome collects psd files, that's designers give from everywhere to a single website. PSDhome gives everyday free psd files, which are buttons, icons, text effects, themes, graphics and many more. 18. FreebiesPressMinimalist style design freebies blog. Perfect place for downloading fonts, icons, brushes and of course PSDs. 19. PSD CollectorA lot of useful resources and free PSDs at design and development blog called PSD Collector. 20. FreePSDThemeFreePSDTheme is a collection of themes designed by Dany Duchaine and some other web designers from Themeforest. Dany now gives away high-quality top of the line premium themes for free to spread his talent, time, and inspiration. 21. web3mantraVery nice PSD files collection created by web3mantra team. 22. Net-Kit.comNet-kit provides free PSD files, mostly web related graphics. 23. FZWPFZWP – very strange name, old and not attractive design but they have big library of PSD files, your decision to visit this or not. 24. Aaron OvadiaAll PSDs are free to be used in personal projects or commercial projects. Created by Aaron Ovadia. 25. ForDesigner.comPSD files collection by ForDesigner.com team. Free PSDs covering full illustrations and single objects. 26. Free4PhotoshopAnother “redesign needed” PSDs archive. Free PSDs from Free4Photoshop. 27. FrooWebFrooWeb.com provides free PSDs such as web templates, video player skin psd, buttons and much more. 28. DezignusElegant design and attractive freebies – PSDs. Dezignus offers wide range PSD files for free. 29. Artfans DesignClean website design with clean and professional free PSD files. 30. Smashing MagazineDefinitely one of the best source for designers, they also provide free PSDs, just check this out. 31. Free PSD FilesSimple and “straight to the point” PSD files gallery. 32. DezinerfolioA lot of great design resources like vectors, icons, themes and free PSDs. |
Use PHP Flat File Cache To Lighten Database Load Posted: 07 Oct 2010 03:00 AM PDT We know how much fun it is to have to write the same query 12 different times and/or do a lot of LEFT, INNER, or explicit JOINs to the data that we need. There are several different available methods of caching available depending on the environment we are developing in. One that is very quick and simple is Flat File caching and it can also serve many different purposes. These methods are slightly advanced and can be very helpful if you have built your own custom CMS for your website. Later we will link to more basic practices that can lead you up to these methods. Using flat file caching for an easily accessible arrayThis can be handy if you have a site that uses categories for anything like products, blogs, articles, etc. For this it is very nice to use a multi-dimensional array as you will most likely want to store more than one thing about each category. Let’s just take an example of product categories. For product categories you will have information on at least; category URL, category title, DB id, and possibly some more details about the category or an image (there are of course many more possibilities). You could structure the array with the id as the key or what is most likely better you can use the URL as the key. So your array might look like this: <?php $_CATEGORIES['seo_url'] = array('id'=>$id,'title'=>$title,'image'=>$image); ?> Using the URL as the key for the array allows us to access all of the information just by knowing the <?php $_SERVER['REQUEST_URI']; ?> . So how do we create a cache for all of the categories? Say we are using MySQL and the DB table name is categories. <?php $cat_query = mysql_query("SELECT id,seo_url,title,image FROM categories"); while($cat = mysql_fetch_assoc($cat_query)) { $seo_url = stripslashes($cat['seo_url']); unset($cat['seo_url']); $_CATEGORIES[$seo_url] = $cat; } $f = fopen('cache/product_categories.php','w+'); fwrite($f, '<?php'.chr(10).'$_CATEGORIES = '.var_export($_CATEGORIES, true).'?>'); fclose($f); ?> Of course this takes correct permissions and you will have to take security precautions that are out of the realm of this post but this is a simple example of making a flat cache file that will give you an easily accessible array of the categories. You see in the fwrite that it adds the open and close PHP tags and the chr(10) adds some line breaks so that the file is readable. You can then just have an include wherever you will need the product categories. I have used this in some systems that I have made and to make sure that it is always up to date the cache is updated anytime that there are changes to the categories table in the database. To keep it up to date I created a function that does this for me so that I don’t have repeat code anywhere. The function can be done like this: <?php function build_category_cache() { $cat_query = mysql_query("SELECT id,seo_url,title,image FROM categories"); while($cat = mysql_fetch_assoc($cat_query)) { $seo_url = stripslashes($cat['seo_url']); unset($cat['seo_url']); $_CATEGORIES[$seo_url] = $cat; } $f = fopen('cache/product_categories.php','w+'); fwrite($f, '<?php'.chr(10).'$_CATEGORIES = '.var_export($_CATEGORIES, true).'?>'); fclose($f); } ?> You see that basically all you need to do to turn code into a simple function is to add function the_function_name (){} around the code that you want to run. The open and close parenthesis in this case have nothing in them because the function is not returning anything because the purpose of the function is create a flat cache file. And to call the function from our category edit script simply do this. <?php build_category_cache(); ?> Using flat files for including some contentThis is handy for managing content of your site and is actually most likely similar to methods that Wordpress, Drupal, or almost any other CMS probably uses. In this use of flat files you are basically just creating HTML files that can be used as includes or just stand alone pages. This is a method that can be used to help make your website more dynamic. Perhaps you have a front page that you want something to change with the seasons then you could name your cache files something like winter.html, fall.html, etc. and on the front end check the php date() and display the file appropriate to that date. In this example lets just say that we have a MySQL database with a table named content. And in this one we are just creating cache files for the main content of each page. In the database “title” is a heading on the page which we will put in h2 tags and “content” is the main content going under it. <?php $content_query = mysql_query("SELECT id,seo_url,title,content FROM content"); while($c = mysql_fetch_assoc($content_query)) { $seo_url = stripslashes($c['seo_url']); $output = '<h2>'.stripslashes($c['title']).'</h2>'; $output .= '<p>'.stripslashes($c['content']).'</p>'; $f = fopen('cache/'.$seo_url.'.html','w+'); fwrite($f,$output); fclose($f); } ?> You see here that we had to move the file management code into the while because we are going to be creating multiple cache files. There will be a cache file for each content page. Here is a simple example of how to use this on the front end. With this you could run most content off of one file if you wanted to. You could use the index file below with a header similar to this: header.php <?php $uri = $_SERVER['REQUEST_URI']; $uri = explode('/',$uri); // this will give you an array with all of the levels of the url $uri = array_filter($uri); // this gets rid of empty/false/null/<0 values $levels = count($uri); //this will count the number of levels which you will need in some cases $file = $uri[$levels].'.html'; //here you are checking to see if the file exists if(!file_exists($uri[$levels])) //most likely you actually want to do more checking but this is a basic example { header('HTTP/1.1 301 Moved Permanently'); //301 is not necessary but there are times you will want to use it header('Location: /'); exit; } ?> index.php <?php include('includes/header.php'); include('cache/'.$file); include('includes/footer.php'); ?> With this sample you could have your site served up with just the index.php and of course your header/footer/and cached files. You just need a .htaccess file to make sure that all URL’s point to the index file. An entry like: RewriteRule ^(.*)? index.php [NC,L] In this example we have a header.php which will have all of our beginning html code as well as probably the navigation and anything at the top of the page that is static ac\ross all pages of our website. The footer is the same deal as the header. This is code that appears on most any page of the site. The reason for having the header and footer as include files instead of on each page is so that it can be edited in just one place instead of having to edit on every page. Obviously this is assuming you have already gotten the URL and put it into the variable. With this you can server up multiple different content pages with the exact same PHP page dynamically. Any questions or comments let me know. If you would like more detail about this method or uses I can respond in comments or even in new blogs. I know this is a little more advanced and some of you might not know when or where you would even use anything like this so don’t be shy. |
You are subscribed to email updates from 1stwebdesigner - Graphic and Web Design Blog To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Comments (0)
Post a Comment