$now = mktime(date('H'), date('i'), date('s'), date('m'), date('d') , date('Y')); $dateLimit = mktime(23, 59, 59, $_POST['dateLimitMonth'], $_POST['dateLimitDay'], $_POST['dateLimitYear']); $expireIn = $dateLimit - $now; // Generating a key with your server details $license = $padl->generate('<?php echo $domain ?>', 0, $expireIn); </pre> <h2>License Key or Error Message</h2> <pre><?php echo $license ?></pre> <h2>Validate</h2> <?php $results = $padl->validate($license); ?> <pre> $license = '(... the license key ...)'; $results = $padl->validate($license); </pre> <?php include_once('_license_messages.php') ?> <h2>Padl\License::validate return</h2> <pre><?php echo print_r($results) ?></pre> <?php endif; ?> </div> <!-- /container -->