|
|
#1 |
|
Gold Member
![]() |
Okay so I'm working on a bunch of pages for a website I'm hired for. It's got alot of php and I'm working on my local server instead of the site that way I can just upload all the changes when I'm done. Stupid stupid stupid me forgets everything that I changed and figured I'd just upload the whole website folder again and all would be dandy. This was WRONG. All should have been dandy except when I overwrote the database connection information (server, username, password, database) all of the information from the live server got overwritten with the information from my local server. No big deal right? Just change the info to be the correct info.
WRONG!!! When I first try to test the site I get a big nasty database connection error. Oops I have the wrong database info. Go fix it, upload changes, try again. Same big nasty database connection error. The weird part? It's still trying to connect with 'root@localhost' (using password:YES) instead of the changes I just made. So I empty my browser cache, nothing, use a different browser, nothing, wait a bit to see if the server just hasn't responded yet, nothing. So I put in the url to get to the database info file directly and lo and behold there's all the correct info (I know I know super duper not secure, I haven't done any htaccess stuff yet). So if that file has all the correct info why am I still getting errors from the thing trying to use the wrong info? PS: Also if I go past the index.php page and into the admin.php page then the database seems to connect just fine? It's running a require_once on the exact same connection file as the index page... what gives? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|