Skip navigation links

MySQL Forums :: PHP :: test to live with mysql_connect_db


Advanced Search

test to live with mysql_connect_db
Posted by: Bill Welsh ()
Date: November 30, 2012 02:07PM

Some advice please.

I have a testing server at localhost, after making amendments fixing bugs etc. I upload to a hosted web server. Problem is I have to change all the mysql_connect_db statements before uploading due to parameter 1 of the mysql_connect_db statement on the testing server being set to "localhost" and on the live server it's info provided by the web hosting company.

Is there any way I can set something in my localhost testing environment (or a completely different method) that simulates the same as the live environment

Options: ReplyQuote


Subject Written By Posted
test to live with mysql_connect_db Bill Welsh 11/30/2012 02:07PM
Re: test to live with mysql_connect_db G Williams 12/01/2012 10:43AM
Re: test to live with mysql_connect_db Barry Galbraith 12/01/2012 04:42PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.