 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Creating a Mobile Photo Blog, Part 2
by Chris Cornutt October 13, 2011 @ 10:54:21
PHPMaster.com has posted the second part of their series helping you build a mobile photo blog powered by email attachments pulled over POP3. (Part one is here)
This is the second article in a two part series in which I show you how to create a photo blog that is updated from your mobile device. Part 1 laid out the plan for building the application, set up the database requirements, and introduced you to some user contributed functions from the PHP manual which make it easy to retrieve messages from a POP3 mail server. In this installment I show you how to bring everything together so you can start photo-blogging on the go.
In this new tutorial they include the code to authenticate against the database, insert the email details into the tables and inserting the formatted results into blog posts. It's finished off with the code to pull out the latest entries and display them along with their matching photos.
voice your opinion now!
tutorial photo blog pop3 email approval
PHPMaster.com: Creating a Mobile Photo Blog, Part 1
by Chris Cornutt October 06, 2011 @ 08:35:57
PHPMaster.com has started up a new series of tutorials today with part one of "Creating a Mobile Photo Blog". The set of tutorials will show you how to create a simple blogging tool that will upload images as submitted via an email address.
This is the first article in a two-part series in which I will show you how to create a photo blog as part of your personal website which you can update from your phone simply by sending an email. You'll write a script to check the inbox of an email account for new messages using POP3; the script will extract the messages' subject line, body text, and attachments and update a database accordingly. You can then pull the information from the database for display on your blog, in a sidebar, or however else you see fit.
The start with some of the security considerations you'll need to keep in mind when creating a script like this depending on how open you want it to be (like filtering based on the "From" email or sending an approval message before posting). Included in the post is the SQL to create their basic tables for posts, image details and the pending items. There's also a PHP class (POP3) that makes an IMAP connection to a remote server, authenticates as your account and fetches the latest messages along with their attachments. These are pulled with a quick script and displayed via a foreach.
Part two will get into more of the integration of the images and the approval technique prior to posting the images.
voice your opinion now!
tutorial photo blog imap email approval
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
Kae Verens' Blog: Extracting a sudoku puzzle from a photo
by Chris Cornutt February 04, 2009 @ 12:57:18
Kae Verens has posted a cool little application of how to pull information out of a photo and parse it with the GD library. His example is a visual sudoku solver (part one, at least).
The plan for this one is that, if you're doing a sudoku puzzle in the pub or on the train, and you get stuck, you just take a snapshot of the puzzle with your camera-phone, send the photo to a certain mobile number, and a few seconds later the solution is sent back as an SMS message. The solution costs you something small - 50 cents, maybe.
The script looks at a picture of a sudoku puzzle, converts it to b&w and tries to find the squares surrounding each position of the board. With these measurements, the next step is to grab the numbers already in the puzzle and hand those off to the puzzle solver to be processed.
voice your opinion now!
extract sudoku puzzle number grid photo solve textmessage
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
Zend Developer Zone: Reading and Writing MP3 and Photo Metadata with PECL
by Chris Cornutt November 11, 2008 @ 08:44:45
The Zend Developer Zone has a new tutorial from Vikram Vaswani looking at the reading and writing of metadata for mp3s and images with two handy PECL extensions.
It's just that every time I sit down to have a go at [finding something in my photo or mp3 library], the sheer volume of data overwhelms me and I take the command decision to deal with something easier instead. Sounds familiar? If it does, help is at hand, in the form of PHP's ID3 and EXIF extensions. These extensions can help you organize and catalog your digital media collection so that it's easier to navigate and search. Keep reading, and I'll show you how.
He installs the ID3 package first (via the pecl command line tool) and gives a few sample scripts to pull the metadata information out of a mp3 file as well as update/remove the information that's already there. He even sets up a simple SQLite database to store the information he's retrieved.
The second part of the tutorial looks at grabbing the image metadata via the EXIF extension. This can yield all sorts of information including date/time the photo was taken, the resolution, the model of the camera and various camera settings at the time. He includes a sample script that automatically makes thumbnails for the images via the exif_thumbnail function.
voice your opinion now!
pecl package id3 exif mp3 photo metadata tutorial
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
Cal Evans' Blog: ewt08 (elePHPant World Tour 2008)
by Chris Cornutt September 09, 2008 @ 09:33:35
Cal Evans and Ivo Jansch have started up a bit of a contest for those owners of elePHPants out there - the elePHPant World Tour (ewt08):
Here's the basic premise. It seems obvious that elePHPants love to travel. Equally obvious is the fact that a lot of PHP developers love to take pictures. So, let's combine the two. If you spot an elePHPant while traveling, like near a landmark, or making it's way through the airport, snap a picture. Upload it to flickr and tag it with ewt08. Thanks in no small part to a bit of Web 2.0 magic and Wordpress, we'll steal the picture from flickr and post it on the blog.
In January of 2009 the PHP Women group will take a look at all of the photos and pick the best ones. There's multiple prizes so far including a copy of Zend Studio Professional and admission to the Dutch PHP Conference '09 (check out the about page for more).
voice your opinion now!
elephpant world tour ewt08 flickr photo travel
|
Community Events
Don't see your event here? Let us know!
|