$_POST['category'] , 'title' => $_POST['title'] , 'article' => $_POST['article'] , 'when' => time() ); $instance = stream_socket_client('tcp://127.0.0.1:5555'); fwrite($instance, json_encode($entryData)); header("Location: {$_SERVER['REQUEST_URI']}"); exit(); } ?> Blog Stab