Reply to thread

Ahh, I just read the first page and it only describes teh communication with the Nas, but not how to track these things :)

http://www.php-einfach.de/einf_mysql.php

Here you can learn how to make a mysql connection with php.


Basically you just need a user table:

id, name, pw, available, time


from you phone, you call a simple URL: something.php?id=[user_id]&pw=[pw]&available[true/false]

The pw is not really secure, it is just a not known secret to make hacking a bit harder...


You use the first two vars to get the right user and the last one to set the status in the db.

After that you check if both users are not available and if this is true switch the cam on :)


If you like you can send me your php script via pn or post it here and I will take a look on it :)

Id did a lot with php as I was younger, so I should be able to help you^^


Top Bottom