<?php include($_SERVER['DOCUMENT_ROOT'].'MyPicture.class.php'); ?> <img src="<?php $x = new MyPicture ?>" /> <img src="<?php $y = new MyPicture ?>" />