PHP
  Home arrow PHP arrow Creating a Login Script for a PHP Invo...
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

Creating a Login Script for a PHP Invoicing System
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 29
    2006-09-06

    Table of Contents:
  • Creating a Login Script for a PHP Invoicing System
  • What if I don't see that page?
  • Database schema
  • Login program

  • 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


    Creating a Login Script for a PHP Invoicing System


    (Page 1 of 4 )

    In this first part of "Building an Invoicing System," we are going to look at invoice management. Why would anyone want an online invoicing system? Well, if you are a freelance web developer like myself, you will undoubtedly need to invoice your clients so as to be able to get paid at the end of the month. This application will help you to manage your client details as well as your invoices.

    Of course there are a great many invoicing systems out there, but most of them(or at least the good ones) will cost you a lot of money. What you get with this system is:

    • Client Management: create, update and view client information.
    • Invoice Management: create, update, view and print invoice data.
    • User Management: create and keep a log of people using your invoicing system.

    Because every person will have different requirements for an invoicing system, I've decided to make this program as general as possible. Of course there are common aspects that everyone will need from a invoicing system, such as the ability to create a new invoice or to create a list of all clients that you work with, among others. These commonalities are adequately covered in this article.

    Tools needed:

    PHP4 or higher: Available from http://www.php.net

    MYSQL: Available from http://www.mysql.com

    The best way to make invoices printable is to create them in pdf format. This is why we will use the php_pdf.dll extension, available to PHP since PHP version 4. To use this extension please do the following:

    First you will need the PDF Acrobat reader/viewer. If you do not have it on your system, please go to: http://www.adobe.com/products/acrobat/  and download Adobe Acrobat. It will not cost you a cent, so go ahead and download it. Then once you've downloaded and installed Acrobat Reader, the next step is to locate the  php_ini file that came with your PHP installation. If you are running a Windows system, it should be located in your C:windows directory or in your C:php directory. Open it up in notepad and use the find dialog box:

    This should help you find the extensions list fairly quickly. Once you've reached the list, scroll down until you find php_pdf.dll, then remove the semicolon(;) just in front of it.  Save  and close the file. To make sure that the pdf library is available, open a new document in notepad or any text editor and type the following:

    <?
    phpinfo();
    ?>

    Save the file as test.php, NOT test.php.txt or anything else. It has to have the .php extension only, otherwise it will not work. Run the script and make sure that you see the following in the resulting page:

    As you can see from the screen shot above, it should have pdf enabled.

    More PHP Articles
    More By Leidago


       · Nice introduction to an invoice system. You might however add some validation and...
       · I agree with the previous post about security concerns. I appreciate the time it...
       · It's very dissapointing to see articles like this on the internet. Using post...
       · Thank you all for your criticism, it is always good to hear what others think....
       · "The only way anyone actually learns to write programs is to do it themselves. I try...
       · "But do you really think the only way someone learns is by teaching him/her to code...
       · Well, OK my comment might have been a bit harsh. Sorry about that. I'm sure you have...
       · If it's only a couple lines, why not post them here for the rest of us? I believe...
       · I totally agree. I will admit I am pretty new to PHP, and as much as I read in...
       · Well, it's too much work to rewrite all code but basically it comes down to 2...
       · I will be writing an article on PHP/MYSQL security in the near future. The article,...
       · Here is another point of view. While I do appreciate reminders regarding the...
     

       

    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 4 hosted by Hostway
    Stay green...Green IT