PHP
  Home arrow PHP arrow Page 2 - Project Management Overview
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
PHP

Project Management Overview
By: David Web
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2008-07-21


    Table of Contents:
  • Project Management Overview
  • Other project scripts
  • Templates
  • Style Sheets

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    Project Management Overview - Other project scripts
    ( Page 2 of 4 )

    There are a number of project wide files, which include the following:

    functions.php - This script contains some of the functions that the application uses on a system wide basis. Below are some of them. The names are indicative of the work that the function is supposed to do:


    function checkformat($aUsername){

    if(eregi('^[a-z]+[.]+[a-z]+$',$aUsername))

    return TRUE;

    else

    return FALSE;

    }


    The "checkformat()" function above uses regular expression to check the format of the given username. In this application, all user names must follow the format "name.surname" and all must be in lowercase. It is just to put another obstacle in the way of any potential intruder or hacker of the authentication system. As you might have guessed, the function is used by the login script as part of the verification process.


    function checkmailformat($aEmail){

    if(eregi('^[a-zA-Z0-9_-.]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+ $',$aEmail))

    return TRUE;

    else

    return FALSE;

    }//end function


    The "checkmailformat()" function checks the format of an email address when a new user is created and also during the password recovery process. It also uses a regular expression to verify the format of the email address. 

    dbcon.php - The dbcon.php script basically contains the database login credentials. This is what my login details are:

    <?

    session_start();

    $title = "Project Management";

    //database connection

    $db = mysql_connect("localhost") or die("Failed to open connection to MySQL server.");

    mysql_select_db("project_management") or die("Unable to select database");

    //set useful variables

    $month_names = array("","January","February","March","April","May","June","July","August",
    "September","October","November","December");

    //set useful variables

    $td = date("Y-m-d");

    $date_time =date("Y-m-d h:i:s");

    ?>


    I can show you my connection details because I don't have any sensitive information that you should not see and also, I'm not connected to the Internet or part of any network, and so cannot be hacked. Otherwise, I would not do so. But please make use of the MySQL security system and secure your data; don't ever show your connection details to anyone, in fact, if you are going to use this application, make sure to put this file outside of your root directory. Now, this script contains some information that will be used most of the time and is therefore included in almost all the scripts of the project.



     
     
    >>> More PHP Articles          >>> More By David Web
     

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek