Results 1 to 5 of 5

Thread: PHP Common functions..

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Answers
    6

    Smile PHP Common functions..

    Can anyone help me to give some examples of php common functions which can be reused in our projects like phpmailer funtion, etc??
    Thankz in Advance....


  2. #2
    Junior Member
    Join Date
    Jul 2008
    Answers
    5

    Re: PHP Common functions..

    hi,
    you can ve your database connections, validation functions, Log file creation etc., in common functions.


  3. #3
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Re: PHP Common functions..

    You should write those function in common_functions file which are common to your project.

    Suggestion: Don't keep you database/validation function in this file - This will mess with your functionality road-ahead.

    Functionality:
    ------------
    1. Login script
    2.Validate logins
    3.reports oriented queries as they are required now an then.
    and many more which you can better jugde based on your projects

    Logs:
    -----
    1.create log
    2.update log
    3.archive logs

    Mailing
    -------
    mails

    Session
    --------
    check session expire - This will be used everywhere so you can add it in common_functions

    session creation code should be in your constant defining file not in common function file.

    Thanks.


  4. #4
    Junior Member
    Join Date
    Dec 2008
    Answers
    11

    Re: PHP Common functions..

    I Think pritz is right, But i will also add some more point, if you project have some same grid than you can make one common function for that & put them in the common file.


  5. #5
    Junior Member
    Join Date
    Mar 2009
    Answers
    9

    Re: PHP Common functions..

    There are no such this as common functions, its vary project to project. Any function used more than once can be a common funtion. So you can declare most used funtions in your project to a common file


  6.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact