 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Slawek's Blog: Efficient file serving in PHP application with nginx
by Chris Cornutt March 25, 2011 @ 12:34:34
In a quick new post to his blog today Slawek looks at a method he's come up with to more efficiently serve up files in a PHP application using the nginx web server.
Sometimes we need to serve files directly from application, especially when file access is restricted by account permissions. Using readfile() to achieve this can successfully kill our web server - even without huge load. To avoid performance problems we can use nginx X-Accel-Redirect feature, and serve files from application through nginx server.
He sets up an example situation - serving up gallery images for a basic site - and shows how to configure the nginx server with the "/gallery" directory and the PHP code you'll need to push the "X-Accel-Redirect" header along with the contents of the image.
voice your opinion now!
nginx application gallery image file serving
Codrops Blog: Fresh Sliding Thumbnails Gallery with jQuery and PHP
by Chris Cornutt June 29, 2010 @ 12:37:21
On the Codrops blog there's a recent tutorial posted showing how to create a fully-functional image slider/viewer with a combination of HTML, jQuery and a bit of PHP (here's a demo).
In this tutorial we are going to create another full page image gallery with a nice thumbnail area that scrolls automatically when moving the mouse. The idea is to allow the user to slightly zoom into the picture by clicking on it. The thumbnails bar slides down and the image resizes according to the screen size.
Based on this tutorial, they show you how to build on it and add a few new features like a changing cursor depending on its position in the current image. The show the folder structure you'll need, the HTML and PHP to make the backend work and the CSS and Javascript to round out the frontend. If you want to skip straight to the good stuff you can also just download all the code and get started.
voice your opinion now!
tutorial sliding photo thumbnail gallery jquery css
NETTUTS.com: Create a Slick Flickr Gallery with SimplePie
by Chris Cornutt February 26, 2009 @ 12:56:12
In this new tutorial from NETTUTS.com there's information on how to create a gallery of the images from your Flickr account with help from SimplePie, a PHP tool for parsing XML feeds (like RSS).
Ok, so we're going to be touching on a number of technologies for this tutorial. We'll be using an RSS feed from Flickr, a bit of PHP, and some jQuery to make things nice and interactive! We'll use SimplePie to handle the RSS feed, as it makes life much easier, and can be used in any other projects where RSS feeds are involved.
They pull in the public photo information for a given user ID and parse details like the title of the gallery and each image's details, including descriptions. Add in a few links, some Javascript (jQuery) and HTML and you have a simple image gallery that automatically updates when you upload new photos to Flickr. You can grab the source here or just see it in action in their demo.
voice your opinion now!
tutorial simplepie flickr image gallery jquery rss feed
NETTUTS.com: How to Dynamically Create Thumbnails
by Chris Cornutt November 21, 2008 @ 10:31:25
The NETTUTS.com blog has a new screencast posted showing how to create a simple thumbnailing script you can use in any application (like an image gallery).
In this week's screencast, I'll show you how to upload files and then have PHP dynamically create a thumbnail. Whether you're building an ecommerce site, or just a simple gallery, these techniques will absolutely prove to be useful. If you're ready for your "spoonfed" screencast of the week, let's get going!
The post also includes all of the code and HTML that you'll need to get it up and running (very cut and paste-able).
voice your opinion now!
dynamic thumbnail screencast gallery tutorial
NETTUTS.com: Scanning Folders with PHP
by Chris Cornutt November 13, 2008 @ 14:18:28
The NETTUTS.com site has posted a new PHP-related screencast that covers a simple script to scan over the contents of folders in PHP. To illustrate, they create an image gallery script that mirrors the filesystem structure.
Let's imagine that you want to build a page that will display snapshots of your latest work. [...] In such instances, the best solution is to make PHP scan your "portfolio" folder and dynamically create the code for you. If you want to update your page with a new snapshot, all that you need to do is drag the image, and its respective thumbnail, into the appropriate folders - and PHP will do the rest. Let's build it now!
The screencast comes complete with the entire source and a link to a demo to show the end result.
voice your opinion now!
scan folder filesystem directory tutorial photo gallery screencast
NETTUTS.com: Create a Photo Admin Site Using PHP and jQuery
by Chris Cornutt October 30, 2008 @ 08:46:30
The NETTUTS.com site has another tutorial showing how to combine a powerful language, PHP, and an equally powerful Javascript library, jQuery, to create a simple photo admin site - part one of a series.
I'm pleased to present you with part one of a two part series on creating a photo site using PHP, jQuery, and AJAX. Originally, I intended to fit the entire tutorial into one screencast, but that quickly became a pipe dream as I realized that there was simply too much to cover. Nevertheless, even if you only watch this first video, you should learn a great deal.
In this first part of the series he'll walk you through creating a simple login form to authenticate the user, grab images from the database and show how to keep the database updated. There's a screencast along with the code/html for the tutorial as well as a source download if you just want to skip straight to the good stuff.
voice your opinion now!
photo admin tutorial jquery gallery
DevShed: Setting Up a Web-Based Image Gallery
by Chris Cornutt May 07, 2008 @ 09:31:45
DevShed has started a new series off today with this new tutorial, a look at a few image galleries written in PHP and how to get them up and working on your site.
In this article, we are going to tackle this subject and present some real-world applicable solutions.First of all, this article presumes that you either have a web server of your own or one that you pay for (as a web space) with the necessary server-side services already running and configured appropriately (PHP, MySQL, Apache, etc.). Second, we are going to consider free options for the applications we'll present throughout this article.
The two pieces of software they look at are 4images Gallery and the Coppermine Gallery. Simple installation instructions are included (more can be found in the project's documentation, though) and screenshots show some of the end results.
voice your opinion now!
image gallery tutorial install 4images gallery coppermine
|
Community Events
Don't see your event here? Let us know!
|