RE: [PHP] Easy Question
| From: | Don Read | Date: | Sat, 06 Oct 2001 02:47:01 +0000 |
| Subject: | RE: [PHP] Easy Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70181@lists.php.net to get a copy of this message | ||
On 06-Oct-2001 Chip wrote:
> When you write a php script to access a database,edit records, etc., is the
> entire thing 1 giant PHP page or a bunch of different ones? If it can be
> written both ways, which is the better way to do it?
>
I tend to write based on function:
userland.php
adminland.php
whatever ...
then include() the bits where the $vars indicate:
if ($do_detail)
include('detail.php');
And, of course, underneath is the common thingys:
require(class.html.php);
require(class.forms.php);
require(libsql.php);
Regards,
--
Don Read dread@texas.net
-- It is necessary for me to learn from others' mistakes. I
will not live long enough to make them all by myself.