© PSP People Systems Process Ltd. 2025. All Rights Reserved. Privacy Policy
Ensure that the user has access to a page with a query string.
The code below ensures that the user has a specific query string, this can be useful especially if you want to prevent robots crawling your site and potentially triggering a task page (e.g. an import).
<?php $keya = "369D1131-05F040E089B259E9A9CA7B64"; $keyb = $_GET["k"]; if ($keya == $keyb){ // your code which you want to run } else { // non valid users – redirect to the homepage header("Location: http://your-website/"); die(); } ?>
Convert .NET ticks to php ticks
<?php $tempTicks = $netTicks - 621355968000000000; $phpTicks = $tempTicks / 10000000; ?>