html - Will I be able to test this PHP? -
this question has answer here:
- remote mysql connection in php 2 answers
so have 2 websites. 1 hosted on domain , 1 local on computer (viewing using brackets live preview).
i used hosted website (#1) create mysql database.
then local website (#2) created login page , created index.php document handle submission. in index.php of local website told connect mysql database of hosted website.
then when try preview local page , submit it, error
"cannot /post?name=johndoe&password=123"
so wondering, since sql database hosted online, can test website locally or not?
if provider doesn't allow direct access mysql port (usually 3306) outside not able use remote db.
i suggest try creating dump of remote db , restore in local instance of mysql. it's better approach develop in local , publish modifications after testing database can modified, broked , restored needed.
Comments
Post a Comment