Mailinglisten-Archive |
Hi Class Upload { var $HTTP_POST_FILES; function Upload(&$HTTP_POST_FILES) { $this->HTTP_POST_FILES =& $HTTP_POST_FILES; $this->isPosted = false; } function getFileName($field) { return $this->HTTP_POST_FILES[$field]['name']; } } if ($status) { $upload = new Upload($HTTP_POST_FILES); echo $upload->getFileName("file"); } Vielleicht mal so? oder vielleicht: Class Upload { var $HTTP_POST_FILES; function Upload() { global $HTTP_POST_FILES; $this->HTTP_POST_FILES =& $HTTP_POST_FILES; $this->isPosted = false; } function getFileName($field) { return $this->HTTP_POST_FILES[$field]['name']; } } if ($status) { $upload = new Upload(); echo $upload->getFileName("file"); } oder: Class Upload { function getFileName($field) { global $HTTP_POST_FILES; return $HTTP_POST_FILES[$field]['name']; } } if ($status) { echo Upload::getFileName("file"); } Jens -- -\*SPDJ*/-
php::bar PHP Wiki - Listenarchive