Reply to Re: How to use it inside another class

Re: How to use it inside another class new!
by colin, 16 years, 10 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important