* filename; * } else { * $path = $_SERVER['DOCUMENT_ROOT'] . "/$path"; * } * * return $path; * } * * function start_img($attributes) { * $this->imageAttributes = $attributes; * return ''; * } * * function end_img($cdata) { * $src = $this->truePath($this->imageAttributes['src']); * list($w, $h, $t, $whs) = getimagesize($src); * * $this->imageAttributes['height'] = $w; * $this->imageAttributes['width'] = $h; * * return sprintf( * '', * XML_Transformer::attributesToString($this->imageAttributes) * ); * } * } * ?> *