<?php require_once "../apiYandex.php"; $text=$_POST['text']; $yandex=\yandex\apiYandex::Factory(); $lang=null; $msg=null; $result=$yandex->detect($text,$lang,$msg); require_once "detected.html";
info at phpclasses dot org