开发者

php upload file class

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 ca开发者_JAVA技巧n anybody give me a link or some hint how should i do this


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.


You could try PEAR.
http://pear.php.net/package/HTTP_Upload/redirected

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜