News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Jones' Blog:
PHP-FIG PSR 1 and 2 Accepted
June 05, 2012 @ 09:27:15

As Paul Jones mentions in his latest post to his site, the much talked-about PSR standards that were proposed by the PHP-FIG group, PSR-1 and PSR-2, have been accepted.

Earlier today, the PHP Framework Interoperability Group accepted two standards recommendations. [...] There's been a lot of commentary about these proposals over the past two weeks, some of it positive and some of it negative.

He includes links to some of the commentary that's been made about the standards recently, and spends some time responding to some of the negative comments specifically, like:

  • What the hell is the "PHP Standards" group? I've never heard of it before now.
  • Why are you guys so secretive and closed?
  • So once I join the list, I can vote on PHP-FIG Standards Recommendations? Sweet!
  • Whatever. I don't need you guys telling me what to do. If I don't want to follow your so-called "standards" then you can't make me.
0 comments voice your opinion now!
psr1 psr2 standard interoperability framework phpfig approval


PHPMaster.com:
Creating a Mobile Photo Blog, Part 2
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.

0 comments voice your opinion now!
tutorial photo blog pop3 email approval


PHPMaster.com:
Creating a Mobile Photo Blog, Part 1
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.

0 comments voice your opinion now!
tutorial photo blog imap email approval



Community Events





Don't see your event here?
Let us know!


introduction bugfix opinion voicesoftheelephpant laravel podcast framework api release series interview community tips language package library symfony install deployment list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework