How To Setup Server Side Serial Validation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

.Net
Posts: 7
Joined: Tue Apr 03, 2012 3:26 am

How To Setup Server Side Serial Validation

Hi,

I would like a little assistance on setting up MySQL server validation. I'm using the built in MySQL database with godaddy.

Location of database
Image

Sample database/users I made based on the sample at http://www.advancedinstaller.com/user-g ... de-sn.html
Image

In the PHP would i change the following lines

// database connection parameters
$db_host = 'licensingtesting.db.3470538.hostedresource.com';
$db_user = 'LicensingReading';
$db_pass = 'MyPassword';
$db_name = 'licensingtesting';


Thank You
.Net
Posts: 7
Joined: Tue Apr 03, 2012 3:26 am

Re: How To Setup Server Side Serial Validation

Actually looks like that worked perfect guess i should have tried it first. How can I set it up so that after it's activated once on the server side no other systems can activate with the same serial key on the server?

Thanks
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: How To Setup Server Side Serial Validation

Hi,

In order to verify if a license has already been activated, you should first modify the structure of the existent table so that there is the possibility of saving if the license was activated before. Then, you have to modify in the php script the interrogation of the table of clients so that it should return if the license was activated.

More information about the way of verification can be found in the section "Limited number of activations (serial number validations)" in our example. You can modify the script from our sample

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
.Net
Posts: 7
Joined: Tue Apr 03, 2012 3:26 am

Re: How To Setup Server Side Serial Validation

Ok great! I don't know how i missed that section when I was looking at it before. So in order to increment to times a license was used I'm assuming you will need to use an account with write permissions to the MYSql database?
.Net
Posts: 7
Joined: Tue Apr 03, 2012 3:26 am

Re: How To Setup Server Side Serial Validation

Can you show me what the mYSQL code would look like to create the license_no and validations_no Keys. I tried modifying the default code by making new UNIQUE keys but didn't seem to work giving me a syntax error. Below is the code to make the clients as said in the post this works fine.

CREATE TABLE IF NOT EXISTS `clients` (
`client_id` int(10) unsigned NOT NULL auto_increment,
`user_name` varchar(255) collate utf8_bin NOT NULL,
`company` varchar(255) collate utf8_bin NOT NULL,
`email` varchar(255) collate utf8_bin NOT NULL,
`serial_no` varchar(255) collate utf8_bin NOT NULL,
PRIMARY KEY (`client_id`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `serial` (`serial_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Our company clients' AUTO_INCREMENT=3 ;

--
-- Dumping data for table `clients`
--

INSERT INTO `clients` (`client_id`, `user_name`, `company`, `email`, `serial_no`) VALUES
(1, 'John Doe', 'User Comp.', 'johnd@domain.com', '233-421-752-325'),
(2, 'User Name', 'Home', 'email@domain.com', '444-555-222-243');
.Net
Posts: 7
Joined: Tue Apr 03, 2012 3:26 am

Re: How To Setup Server Side Serial Validation

Wow never mind the instructions were in the download in the other folder for this.

Return to “Common Problems”