How to use it inside another class

See all posts Reply

How to use it inside another class new!
by LD, 16 years, 9 months ago
I am having trouble using this class inside another class. How shoul I pass the $_FILES variable??Reply
Re: How to use it inside another class new!
by colin, 16 years, 9 months ago
What do you mean by inside another class?

If you want to extend the class? You can do the following:
require('class.upload.php');
class my_upload extends upload {
  function my_extension() {
    // my code here
  }
}

In any case, you pass on $_FILES when you instanciate the class. For instance:
$foo = new upload($_FILES['my_field']);
Reply