Re: How to..

From: Date: Mon, 21 Jul 2003 11:27:12 +0000
Subject: Re: How to..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156046@lists.php.net to get a copy of this message
Hi Haseeb, > i.e. divide the functions into files. and then include > only that file that has the function. That's how I usually do it - for example, I have a file called "dates.lib.php" which contains all my functions for handling dates and times, a file called "db.lib.php" which has my database stuff, etc etc. You may also want to look into classes, which provide a neat way to compartmentalise your code. Personally I don't find them very useful unless the project is large or has many programmers, though. Cheers Jon

« previous php.general (#156046) next »