php/texy/http/index.php
author František Kučera <franta-hg@frantovo.cz>
Wed Jan 26 03:35:01 2011 +0100 (2011-01-26)
changeset 181 bcf03fc1e3f9
permissions -rw-r--r--
správná URL i v javascriptu
(aby fungoval i na /podnik/123 a ne jen v /aaa=bbb)
     1 <?php
     2 
     3 $vstup = urldecode(file_get_contents('php://input'));
     4 
     5 require_once "texy-2.1/texy/texy.php";
     6 $texy = new Texy();
     7 $texy->encoding = "UTF-8";
     8 $texy->setOutputMode(Texy::XHTML1_STRICT);
     9 $texy->process(NULL); //advertisingNotice nepotřebujeme: <!-- by Texy2! -->
    10 $vysledek = $texy->process($vstup);
    11 
    12 echo($vysledek);
    13 
    14 ?>