dongyipa0028 2010-07-30 09:29
浏览 24

php上传文件类

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

  • 写回答

2条回答 默认 最新

  • dongyi2993 2010-07-30 09:31
    关注

    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.

    评论

报告相同问题?