hi all, i am new to php i am in search of a php function in a class that accepts some parameters like size,type etc the class should be such that it should be able to set some default values to the parameters that are not assigned by user for ex the destination folder etc can anybody give me a link or some hint how should i do this
A:
You create a class, then you add some fields to it. Set the default values in the constructor and you're good to go. For added encapsulation, you can define a __get() and __set() method and then make the fields private so they cannot be modified from outside your class directly.
tdammers
2010-07-30 09:31:38
A:
You could try PEAR.
http://pear.php.net/package/HTTP_Upload/redirected
rrrfusco
2010-07-30 09:34:42