I want client system's unique id for registering my app.
My Method (or idea):
I give a key (
key1) to my client when he purchase my applicationAfter he installs my application on his local server, I want to verify that installation.so he want to submit a form
after receiving that information, I want to store that information and update his local database.
my server database 'installations' table structure : name(empty) , email(empty) , address(empty) , key1 , key2 , unique_id(empty) , status(0)
if key1 currect and status == 0, his informations with unique_id save in installations table & status set to 1 & his local database will update with key1 and key2.if key1 currect and status == 1(re-installing time), then his local machine unique_id and installations table unique_id will check. if equal, his local database will update with key1 and key2.if not currect, his local database will update with key1('key not valid') and key2('key not valid').
if local database verification table values (key1 and key2) not 'key not valid' then application will work.
Client form:
<?php
$unique_id = "i want unique system id here";
?>
<form action="http://www.example.com/verifiy.php" method="post">
<p>
<label>Name</label>
<input type="text" name="name" />
</p>
<p>
<label>Email</label>
<input type="text" name="email" />
</p>
<p>
<label>Phone</label>
<input type="text" name="phone" />
</p>
<p>
<label>Activation key</label>
<input type="text" name="name" />
</p>
<p class="hidden">
<input type="text" name="unique_id" value="<?php echo $unique_id; ?>" />
</p>
<input type="submit" />
</form>
When client submit this form, i want save all informations with system unique id on my server and i will give him to a key.
please help me, how can i get client system's unique id? sorry for my bad english. Thanks.