[thelist] PHP User Defined Functions
Kristy Frey
kristenannfrey at yahoo.com
Wed Jan 2 14:50:25 CST 2002
> Now, dealing with a variable amount of arguments with the functions (some
> functions take two arguments, some one, some zero, etc...) could prove
> challenging, but PHP.net has a section devoted to such concerns. I wish I
> had more time to research it:
I like the idea ...but as you state the argument passing is a definite problem ...plus, sometimes
I pass by reference and that is a real issue...
As far as including every function file - many of my scripts will only call a few and I agree it
would be a waste to include the ones I dont use.
The "master function file" idea seems like a lot of overhead too. Plus - I work in an office that
doesn't have a web test environment and I often am forced to make changes to live files "on the
fly". If I have to make a quick change to a function and I break it / or have a syntax error,
only the scripts including that particular function file will break. I can't risk having live
areas of the site go down because the "master function file" has a syntax error. Yeah, I know
coding like this sucks but that's my situation and changing it is "not in the budget" right now.
Thanks for the ideas!
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
More information about the thelist
mailing list