I have managed to set up 2 fileservers in my attic to act as storage for files etc for the people on my home network and others alike.
I have php, mysql and apache all installed and running. I can tap in the IP address of that machine and see my files perfectly via a browser, on any computer!
My problem is this:
I don't have a static IP, and i don't intend to buy one either. Is there a way that PHP or apache can regularly check what the IP address of the machine running the script is? i.e on my 2 servers have a file which say every 24 hours will check the IP address of the server and update the database or file on the server which I rent?
I basically want to be able to go away on holiday or leave the computer for prolonged periods but still be able to access it. Can I create a page on my rented server (which I can always access) which pulls the 'current' IP address of my attic server from a database; the same database which is updated every hour by the servers in my attic?
Can this be done via chron or anything? I'm not very familiar with apache or chron or anything. So any guidance would be great! Have I made myself clear or do I need to reword my query?
Thanks!