Geeks Talk

Prepare for your Next Interview




PHP Common functions..

This is a discussion on PHP Common functions.. within the PHP forums, part of the Web Development category; 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.......


Go Back   Geeks Talk > Web Development > PHP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-29-2007
Junior Member
 
Join Date: Aug 2007
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Ammu_R is on a distinguished road
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....
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 4 Weeks Ago
Junior Member
 
Join Date: Jul 2008
Location: india
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
dhivyavasya is on a distinguished road
Re: PHP Common functions..

hi,
you can ve your database connections, validation functions, Log file creation etc., in common functions.
Reply With Quote
  #3 (permalink)  
Old 4 Weeks Ago
Junior Member
 
Join Date: Sep 2008
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
pritz is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Web Development > PHP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Map a common drive devsviji Networking 1 11-22-2007 02:14 AM
'Common step library' nofa93 Test Director 0 09-10-2007 04:05 PM
Query to get common records murthydn16 SQL 3 09-04-2007 05:21 AM
What is Common Language Runtime GeekAdmin VB.NET 3 06-19-2007 07:39 AM
Common Interview Questions admin Interviews 0 06-10-2006 04:43 PM


All times are GMT -4. The time now is 04:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved