PHP služba – Texy, HTTP API
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed Jun 09 15:51:41 2010 +0200 (2010-06-09)
changeset 136230bd05dcfec
parent 135 ec558dd0ca34
child 137 5a7a24ac3a15
PHP služba – Texy, HTTP API
php/texy/http/index.php
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/php/texy/http/index.php	Wed Jun 09 15:51:41 2010 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +<?php
     1.5 +
     1.6 +$vstup = urldecode(file_get_contents('php://input'));
     1.7 +
     1.8 +require_once "texy-2.1/texy/texy.php";
     1.9 +$texy = new Texy();
    1.10 +$texy->encoding = "UTF-8";
    1.11 +$texy->setOutputMode(Texy::XHTML1_STRICT);
    1.12 +$texy->process(NULL); //advertisingNotice nepotřebujeme: <!-- by Texy2! -->
    1.13 +$vysledek = $texy->process($vstup);
    1.14 +
    1.15 +echo($vysledek);
    1.16 +
    1.17 +?>