You are here: how to make good use of includes « PHP Language « IT news, forums, messages
how to make good use of includes

Posted by JM on 12/29/07 18:02

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация