I have create an android app which use register and login at my website using PHP and mysql.
I have test it couple of time on my device and on emulator and it work just fine.
And then I ask my friend to try it on his device, but when he try to register(which is write data to mysql via php and json from his device, from his internet connection) it failed. The application hang for a while and then show warning app stop... or something like that...
What make this happen?
is it from php side which cause this? the file permission?
from mysql side?
or something else?
Is the webserver at your location? Maybe it's a setting in the way you configured your settings. Make sure that your ports are forwarded correctly
Please provide more information, improve your question, for example:
Is your friend able to connect to the php website via a browser?
Have you checked the log files of your web-server (is your friend actually connecting to your web server?)
You might try to debug data-traffic and check 'what' is going on by using a debugging proxy-tool, for example:
http://www.fiddler2.com/fiddler2/
Related
Hello guys.
In our actual project we got a Microsoft Server accessed via remotehost. On this server we installed xampp ,Microsoft SQL Server and our previously in ObjectPascal developed program.
Then we have a Microsoft SQL Server at our Customers. Then we have our Application, programmed in ObjectPascal, installed, that works with the SQL-Server and is programmed by our company.
Our Web-solution is programmed that it can work with the database like our old programm. Furthermore we would like to use the old program for working locally and our web solution for working remotely. Furthermore the databases on the web-server and at our customer are identical.
Now we have the problem how we can access the data at our Customers SQL Server, without the need of complex configuration at our customers network.
Our thoughts were:
A Web Server at our customer and access the data per AJAX.
Customers Server permanently asking the web-server if it needs data
Doing something similar like 'push up notification' sending from the web-server to our customer.
Maybe synchronising to and from the server?
We are able to get the public IP-Adress from our customer and are able to update it if it change, so that is no problem. The only problem we have is, how we can access the data from our customer. Maybe our solutions go to a completely wrong direction, that's why i am asking you guys.
If you could give me some hints, tips and tricks, maybe a link or a technology name would help me and we would be really gratefull for that.
I thank you for your time reading this!
I want to connect my arduino code data to php webpage using database. While inserting parameters manually it was successfully done but when connecting arduino code to php webpage it doesn't work I am writing like this
SIM900.print("AT+HTTPPARA=\"URL\",\"localhost:8012/phpgang/getdata.php?");
Setting the httppara, the second parameter is the website you want to access
but it doesn't working.
Anyone can help me in writing in correct form or any other related procedure of connecting it? php code os simple as inserting data through .GET process.
localhost isn't a real server. It's a placeholder name (and IP address) that always refers back to the local system. On the SIM900, this is the SIM900 itself, which is not running your web site.
If you are running your web site on your personal computer, that won't work. You will need to upload and run your web site on a publicly accessible web server to access it from the SIM900.
I am just looking for advice on the feasibility of implementing this and any general ideas and suggestions on whether this is possible. NOT code and this is not homework.
I'm developing an online application for fitness, and, to and from the gym I usually have no internet connection and therefore have to wait until I return home / have internet connection before I can enter all the data for that particular day and any notes.
I'm wondering whether or not it would be possible to somehow develop an offline mode where I can still enter the data and then when I return home, and, connect my laptop to the internet the data will then be uploaded to the server so I don't have to re-enter the data when I get home?
Thoughts
My general thoughts would be to place the data inside a cookie, but, I'm not quite sure how the cookie will update itself once the internet has come back.
Another thought would be to use sockets, and, then interact that way. In that, my web-server has a cron job that "Seeks" whether data is available from a particular IP on the network (Again, the server will be on the same network) and if there is, then, the system will transfer the data from my local machine to the web server.
Any ideas of your own will be greatly appreciated.
You can run a web application offline by using your computer as a server, you can get PHP stacks like the ones listed below that run apache, php and mysql.
Windows: WAMP, AMPPS
Mac: XAMP, MAMP
Then, you can save all your important data to a CSV file, and once your online your script can push the CSV data to your remote web server.
You can check if your online by pinging google or something.
I'm using XAPP under windows and my website just working well!
when I deployed it on the host server, it seems to be working normally, but the insert requests to MySql doesn't have any effect, nothing is changing on the database!
Does anyone had this issue before? is there any configuration in MySql to make it accept insert requests? or simply whats the best way to make it work!
[EDIT]
I use PhpMyAdmin, I have two tables members and notifications, I wanna configure permissions so I can Insert into the notifications table, any hint please?
thank you
check the permissions on the database server for the username and password that you are using. It can also be restricted by IP address, among others.
Indeed, the administrator can set read-only privileges for a user or for a specific table.
Check out the "grant" command for more information.
it would be helpful if you could find out the error message that MySQL is returning. check your web server log files. if you are using some shared hosting plan, there should be an option in your host control panel to see the web server log files. PHP is configured in most places so that error messages are stored in web server log files. find out what is actually happening there. it could be permissions most likely.
I need a help about remote access.
I want to remote access to database on the web hosting server, but this feature is disabled, also for statik IP.
I was wondering that if it is possible to put a php script on hosting and connect local database manager (like intelijidea datagrip, mysql workbench or whichever is possible) via the link.
I don't know if it is possible or not. Also, can you let me know if there is another way to make true this.
If you can help me, it will be so good for me.
Thank you
Edit: There is a option on intelij "New Data Source from Url" you can see ss from below link, can it help me ?
SS: http://prnt.sc/b53z12