 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Devshed: Building a PHP ORM Deploying a Blog
by Chris Cornutt December 09, 2011 @ 11:13:18
DevShed concludes their three-part series about building an ORM in PHP with this latest article. It introduces the idea of dependency injection into the mix, showing how it can be used in the relationships between entities.
if you've already read the two installments that precede this one, it's probable that you're familiar with the inner workings of this sample ORM. In those chapters I implemented the ORM's data access and mapping layers, along with a simple domain model. To be frank, the development of this last tier is entirely optional; however, it's useful for demonstrating the ORM's actual functionality in the deployment of a blog program, which naturally will handle some "typical" domain objects, namely blog entries, comments and authors.
They share the code for creating proxy objects and, using a "poor man's dependency injection container" made from a factory method, interfaces and service classes to handle the results.
voice your opinion now!
orm dependencyinjection container deploy blog service interface
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
Victor Farazdagi's Blog: New Project Phrozn - static site generator in PHP
by Chris Cornutt April 15, 2011 @ 11:02:03
On his blog today Victor Farazdagi introduces a new tool he's developed to help make the creation of static sites even easier - Phrozn, a static site generator that takes content and wraps it in a site's template and structure and outputs it for easy integration.
Given the scale of how client-side technologies (such as JavaScript) evolved, most of dynamic functionality can be implemented using client-side scripts + remote web-services (e.g. Disqus for comments). More than often we a going down that road even on our completely dynamic sites - it makes things more simple.
He gives the example of being able to write the content in VIM and run a single application - Phrozn - and generate the new page to add to the site. He sees it as a good alternative to something like WordPress where most people only use 1% of the functionality it offers. You can find out more about the project by looking into its documentation or you can just dive into the code by grabbing it from github. As a side note, several other tools, like Jekyll are "blog aware" and can be used similarly.
voice your opinion now!
static site generator phrozn blog project github documentation
Community News: "Ideas of March" Kicks off a "Blogging Revival"
by Chris Cornutt March 15, 2011 @ 07:37:04
In an effort to create a "blog revival", Chris Shiflett has encouraged a movement among members of the PHP community to get back involved with their blogs - the Ideas of March:
Most conversation has moved from blogs to Twitter, and although Twitter is more active than blogs ever were, there are fewer quality conversations and debates taking place as a result of this transition. I'm hoping you'll join me in a blog revival.
He suggests that, during the month of March, bloggers band together and write more posts and make more comments than usual to bring out that good content that Twitter loses in it's 140 characters. He shares a few suggestions of the steps to take to join in - write the post, pledge to write more the rest of the month and point out your entry on twitter.
Several members of the PHP community have already posted their "Ideas of March" posts:
If you've written your own "Ideas of March" blog post, let us know and we'll add it!
voice your opinion now!
blog ideasofmarch blog revival community
Query7.com: Developing A Blog With CakePHP
by Chris Cornutt February 11, 2011 @ 09:20:34
New on the Query7.com blog there's a tutorial about building a blog with the help of the CakePHP framework. This is the first part of a series they'll be devoting to helping you understand the framework and create the simple blogging application.
If you want to develop a blog from sctrach without using any CMS like WordPress or Drupal, then you've come at the right place! In this series, we will understand how to develop a blog using
the CakePHP framework. So, why CakePHP? CakePHP is a robust PHP Framework having an extensive community and excellent documentation. It's based on the MVC pattern, which makes it really simple to use.
This first part of the series focuses on helping you get CakePHP installed and running on your platform.
voice your opinion now!
blog tutorial series cakephp application introduction
Cal Evans' Blog: 5 PHP twitter accounts that have replaced my feed reader
by Chris Cornutt August 12, 2010 @ 12:07:29
In a new post to his blog Cal Evans has posted five twitter accounts that he's used to replace his feed reader for everyday reading:
I have given up on feed readers. I never did like them much to begin with and have found over the past couple of years that twitter does a better job of showing me interesting blog posts than Google Reader ever did. In addition to recommendations from friends however, there are a hand full of accounts that I follow to keep up with what is going on.
Here's his list of the five accounts to follow:
voice your opinion now!
blog twitter feed reader opinion
|
Community Events
Don't see your event here? Let us know!
|