im using PHP 4.3.3 on fedora core 3 or 4 (i think) and now have the revised code to: [code]<?PHP $thumbdir = "photos/".$_GET['folder']."thumbs/"; $imagedir = "photos/".$_GET['folder']; $image = $imagedir.$_GET['image']; $MAX = 200; $Start = $_GET['start']; class Gallery { private $thumbdir = "photos/".$_GET['folder']."thumbs/"; private $imagedir = "photos/".$_GET['folder']; private $image = $imagedir.$_GET['image']; private $MAX = 200; private $start = $_GET['start']; private $end; function __construct($thumbdir,$imagedir,$image,$start,$end = $start+$max) { $this->thumbdir = $thumbdir; $this->imagedir = $imagedir; $this->image = $image; $this->MAX = $end; $this->displayStart = $start; $this->displayEnd = $end; }// end construct function display() { return $this->thumbdir; } } //end the class $gal = new Gallery($thumbdir,$imagedir,$image,$start,$MAX); $gal->display(); ?>[/code] however this code is for php5 as im using a Core PHP Programming (revised for pHP5). how would i go about changing this to php4? many thanks