<?php
    
if(isset($_GET['action'])) {
        switch (
$_GET['action']) 
        {
            case 
'get_time':
                echo 
time();
            break;

            default:
                echo 
'inexistant action';
            break;
        }
    }
    else {
        echo 
'no action';
    }

?>