R RichB New Member Licensed User Longtime User Jan 26, 2018 #1 Hi, my sql queries and php work fine over the local network and if I specify the actual IP address of the server. But they won't work when I use a http://www.mysite.com address? Any ideas why? I see in the sql tutorial it works fine using "https://www.b4x.com/android/countries.php" so why does mine only work when I use http://82.x.x.x.x/myphpfile.php. Thanks in advance for any help. EDIT: A little more info, it doesn't give me an error. It is just that the response from the server appears to be in HTML (The php code outputs html code) eg: Response from server: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Title </title> <META name="description" content="Description"><META name="keywords" content="Keyworkds"> </head> <frameset rows="100%,*" border="0">
Hi, my sql queries and php work fine over the local network and if I specify the actual IP address of the server. But they won't work when I use a http://www.mysite.com address? Any ideas why? I see in the sql tutorial it works fine using "https://www.b4x.com/android/countries.php" so why does mine only work when I use http://82.x.x.x.x/myphpfile.php. Thanks in advance for any help. EDIT: A little more info, it doesn't give me an error. It is just that the response from the server appears to be in HTML (The php code outputs html code) eg: Response from server: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Title </title> <META name="description" content="Description"><META name="keywords" content="Keyworkds"> </head> <frameset rows="100%,*" border="0">
Dadaista Active Member Licensed User Longtime User Jan 27, 2018 #2 Hi Are you accessing your domain from the local network? If the answer is yes, try to access from outside your local network Upvote 0
Hi Are you accessing your domain from the local network? If the answer is yes, try to access from outside your local network
KMatle Expert Licensed User Longtime User Jan 27, 2018 #3 I assume your server returns the index.html. Move your php script to a folder and try again (like www.example.com/myfolder/test.php") You can try it by typing the link in a browser. Must be the same behaviour. Upvote 0
I assume your server returns the index.html. Move your php script to a folder and try again (like www.example.com/myfolder/test.php") You can try it by typing the link in a browser. Must be the same behaviour.