PHP
  Home arrow PHP arrow Page 5 - Completing a Blogger with PHP
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Completing a Blogger with PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2006-12-05

    Table of Contents:
  • Completing a Blogger with PHP
  • A quick look at the BlogProcessor class
  • Providing the blog processor with database connectivity
  • Implementing client-side data validation on input forms
  • Improving the blogger’s visual appearance

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Completing a Blogger with PHP - Improving the blogger’s visual appearance


    (Page 5 of 5 )

    By following a similar approach to the one I took when I included a basic client-side validation mechanism, I’ll also provide the blog application with a few CSS rules aimed at improving the corresponding visual presentation. As you’ll imagine, this task can be easily achieved by including the CSS file listed below. Here is the file in question:

    body{

                background: #eee;

                margin: 0;

                padding: 0;

    }

    h1{

                width: 600px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                background: #339;

                font: bold 20px Arial, Helvetica, sans-serif;

                color: #fff;

                border: 1px solid #000;

    }

    h2{

                font: bold 18px  Arial, Helvetica, sans-serif;

                color: #339;

    }

    h3{

                font: bold 16px Arial, Helvetica, sans-serif;

                color: #339;

    }

    textarea{

                width: 300px;

                height: 200px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .blog{

                width: 600px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                margin-bottom: 5px;

                background: #ccf;

                border: 1px solid #000;

    }

    .blog p{

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .dataform{

                width: 600px;

                height: 410px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                margin-bottom: 5px;

                background: #dccae8;

                border: 1px solid #000; 

    }

    .dataform p{

                margin: 5px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #339;

    }

    .datafield{

                width: 300px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .error{

                margin: 0 0 0 5px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #f30;

    Finally, the blog application has been completed! In this case, I decided to include the above CSS declarations, but this feature can be easily modified to suit your personal taste.

    Final thoughts

    Sad but true, we’ve come to the end of this series. In this hopefully instructive journey, you learned how to build a highly expansible blogger with PHP 5, which allows you to insert, update and delete entries very easily.

    In this case I purposely used the term “expansible.” You can introduce your own modifications to the application to extend its existing functionality. See you in the next PHP tutorial!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · In this final part of the series, the PHP 5-based blogger is completed. This process...
       · Another nice article Alejandro, it hints at an object oriented approach to any kind...
       · Hi Jon,Thank you for the kind comments in my PHP article. I appreciate that, and...
     

       

    PHP ARTICLES

    - Authentication Scripts for a User Management...
    - Utilizing the Use Keyword for Namespaces in ...
    - Building a User Management Application
    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT