supa_mike Posted August 9, 2013 Share Posted August 9, 2013 Hey guys I'm quite new at PHP and i just inherited this application from the developer (Who has apparently also left the developer company ) Well, i managed to transfer it from the original server to the new application server. However, i get this strange error when i change the computer name of the host E.G the computer name of the original server was test-server.local and the computer name of the new application server is production-server.local, then i get a login validation error Does anyone know how i can go around this? below is the login.php script function validate_credentials() { // fieldname, error message, validation rules $this->form_validation->set_rules('username','Username','trim|required'); $this->form_validation->set_rules('password','Password','trim|required'); if($this->form_validation->run() == FALSE) { $this->index(); } else{ $this->load->model('membership'); $query = $this->membership->validate(); if($query) { $this->load->model('user_details'); $data = $this->user_details->userdetails(); $this->session->set_userdata($data); redirect('welcome'); } else{ $this->index(); } } } Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted August 9, 2013 Share Posted August 9, 2013 Hi, please use code tags around any code posted. You will need to show the relevent parts of the class, if your not sure what they are, post up the full class. An explination and example of the actual error as it is displayed on the screen/found in the log file should also be provided when possible. Are the database credentials the same on both servers? have you altered them at all? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.