im trying to work/modify with a class i downloaded. sadly im not getting it. I have yahoogled oop and its not making me any wiser.
can some one explain please what i shold be doing?
first of all the classes have a number of vars in the original form like so being the one i want to use
public $fullPath= DD_DIR;
public $fileToDownload = 'ajax-loader.gif'; // File to download listed in the 'download' directory
ok so as i understood i have to construct to use a post value. i did this
function __construct() {
$this-> $fileToDownload = $_POST['image_name'];
}
and changed the var to
public $fileToDownload ;
All the wheels fell off, and nothing get displayed on the page that includes the class. and I hoped some one would give me a jump start.