tangsunx Posted January 18, 2006 Posted January 18, 2006 Hi, After installation, I get a problem as below: Fatal error: Cannot re-assign $this in e:\AppServ\www\admin\includes\classes\upload.php on line 31 Following is php code 13> class upload { 14> var $file, $filename, $destination, $permissions, $extensions, $tmp_filename, $message_location; 15> 16> function upload($file = '', $destination = '', $permissions = '777', $extensions = '') { 17> $this->set_file($file); 18> $this->set_destination($destination); 19> $this->set_permissions($permissions); 20> $this->set_extensions($extensions); 21> 22> $this->set_output_messages('direct'); 23> 24> if (tep_not_null($this->file) && tep_not_null($this->destination)) { 25> $this->set_output_messages('session'); 26> 27> if ( ($this->parse() == true) && ($this->save() == true) ) { 28> return true; 29> } else { 30>// self destruct 31> $this = null; 32> 33> return false; 34> } 35> } 36> } Thanks!
Guest Posted January 19, 2006 Posted January 19, 2006 php5 compatibility problem admin/includes/classes/upload.php on line 31, Change: $this = null; to this: unset($this); Good luck
gammada Posted January 19, 2006 Posted January 19, 2006 Worked for me! A million thanks dude! php5 compatibility problem admin/includes/classes/upload.php on line 31, Change: $this = null; to this: unset($this); Good luck
Recommended Posts
Archived
This topic is now archived and is closed to further replies.