I am using MAMP (just and example) to develop web applications without having to constantly upload and download via FTP.Im sure this is the correct way to test a project but Im no sure if Im doing it right. After Im satisfied with the project I have to change in every page the MySQL databases and most of the links etc.Is there a workaround this? How should this be used?Thanks in advance!
How to work in localhost properly
web development;development process
Whether it is local or not, you need a development environment outside of production. I'm no PHP expert, but every page should not have its own connection code to the database. Create a class that can be reused. Your application should be able to determine if you are on local host or example.com and connect to the appropriate database.And for hyperlinks, look into Relative URL instead of Absolute URL.