how to make good use of includes

This is a discussion on how to make good use of includes within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Because my functions tend to become rather lengthy I split up the functions for each subject or action in a ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-29-2007
JM
 
Posts: n/a
Default how to make good use of includes

Because my functions tend to become rather lengthy I split up the
functions for each subject or action in a function (a) that checks user
input (filter and validation) and if this checks out ok it passes the
variables to another function (b) that retrieves or stores the data
from/in the database, function (a) then communicates the result (true,
false, error, list with data) to the client.
Currently I organized all functions per subject (all functions that
handle for example 'groups': get, add, modify, delete in a file) and I
include all the files when the webservice is called, this is over 500 kB.
A different approach would be to only include the functions needed, this
means a file for each function, so a lot more includes.

What is a good approach ?

Pugi!
Reply With Quote
  #2 (permalink)  
Old 12-30-2007
Jonas Werres
 
Posts: n/a
Default Re: how to make good use of includes

> What is a good approach ?

Enter the 21th century and use classes + autoload?
Also, it's always a good idea to f'up2 existing newsgroups.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0