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.
Related
I've written a webapp in php, which works as a standalone app, but needs to get/post new data from time to time to an API (written by a different company, for desktop software) on localhost. When connecting, it would be from a webpage/browser open on that machine.
So far I've attempted to send curl requests, basically using the generated postman curl code, and it's returning false. I'm thinking it's because it can't connect to the localhost server, possibly because it's blocked from the internet.
I've been researching for a few days, but want a solution that doesn't involve me creating security vulnerabilities in the computers I am trying to connect to, by opening them directly to the internet, and if there is a way to send requests to localhost without installing more software on them I would be partial to that kind of setup.
Does this make sense? I hope someone has some experience or wisdom in this area that could at least nudge me in the right direction.
The localhost is always the computer where you refer to that host. You can't connect to the localhost from your webapp, because the localhost hostname for that app is the computer which runs it.
You have to open a tunnel from you computer to the internet where you webapp can communicate with it.
You can use ngrok to do that, for example
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’m part of a very small company that uses a database hosted on a server (104.131.##.###). However, the server no longer responds and the person who set up and owns the server space has already left the company. This past employee seems disgruntled so they won’t help. It’s complicated, but we decided to open a new server. The only issue is, I don’t know what we were using.
What I do know is I would access and change the database at http://104.131.##.###/phpmyadmin/ (image of login below)
I also had php files stored on the server using Filezilla (in a “var” folder, if that helps) which were accessed via path: http://104.131.96.###/path/to/file.php
I’ve set up a version of the same server using xampp on my own computer, but I can’t keep my computer running constantly.
So my question is, what service were we using / should we use? Where would I start to set up a new server like this? (I still have the php files and can recreate the db)
I've looked into AWS and digitalOcean, but I'm in a bit over my head and can't tell if they're offering what we need.
Any help would be appreciated. Thank you
The server was using phpmyadmin and mysql and Digital Ocean.
So you need at least a LAMP stack. With the info given we can't help you more.
I developed a scan app with phonegap which scans a code, then does an Ajax call to my website which let's the app know whether or not the code is valid (this info is stored in a mysql database).
Now, I want the same functionalities, but on a local network. So I have a computer running a local server using xampp.
It should be possible to take this setup and place it on a different location (so the ip of the computer can change or should be locked or something).
Anyone who can point me in the right direction, I'm pretty clueless...
Good day. I have a thesis project. it is composed of a webpage created on php and a system using vb.net 2008.
As of now , they are both connected to the same database.
I am wondering if it is possible that if i packaged the system and live the website, will still be connected with one database? Thank you in advance.
If I understand you right (and the question could be better worded), you're asking what happens if you deploy the website on a different server than the one you used to develop it. The short answer is that, unless the machine hosting the database is accessible to the web server host machine, that you would also have to redeploy the database.
In other words, wherever you move the PHP-based website and VB.NET system, they would need to be able to access the machine hosting the database server. Otherwise, I see no issue with them both accessing the same database.