美好的一天。我在连接到mysql时遇到问题。但是当我使用互联网时,我可以连接。我尝试使用10.0.2.2/test.php并尝试使用ip / test.php但它不起作用。我也是允许我的防火墙为私人和公共apache.But我无法连接。
任何想法。
告诉我是否应该包含代码,因为它在我在线连接时有效。
这是在线json对象:
{
"emp_info": [{
"employee name": "Adam",
"employee no": "101700"
}, {
"employee name": "John",
"employee no": "101701"
}, {
"employee name": "Paul",
"employee no": "101702"
}, {
"employee name": "Mark",
"employee no": "101703"
}, {
"employee name": "Donald",
"employee no": "101704"
}, {
"employee name": "Brain",
"employee no": "101705"
}, {
"employee name": "Kevin",
"employee no": "101706"
}]
}
这是本地的json对象。
{
"emp_info": [{
"employee name": "john",
"employee no": "132323"
}, {
"employee name": "jones",
"employee no": "223232"
}, {
"employee name": "sam",
"employee no": "3232323"
}]
}
先谢谢。
*更新 当我输入10.0.2.2/test.php时,它说无法访问网络。我只能使用localhost访问我的浏览器:81 / test.php