Back to LanguageTool Homepage - Privacy - Imprint

Integration on website


(vitaljik) #1

I am trying to integrate LT on my website. How exactly I need to adapt languagetool_rpc_url, what the line should be?? I have proxy.php saved on: mywebsite/wp-content/tools/lt/proxy.php and LT form showing on mywebsite.com/tools/language-tool/

Also, the actual version of proxy.php gives error:

PHP Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /home/vitaljik/public_html/proxy.php on line 43


(Daniel Naber) #2

If you get a syntax error, it means your PHP version isn't recent enough. But you can probably just an older version of the proxy.php file, it should also work: https://raw.githubusercontent.com/languagetool-org/languagetool-website/f8d2a4567b6af43db287967534b0c10f2e26c828/www/online-check/tiny_mce/plugins/atd-tinymce/server/proxy.php

languagetool_rpc_url needs to point to the URL of that proxy.php file.


(vitaljik) #3

Thank you for your fast answer! Correct pointing is: "proxy.php?url=http://site.com/folder/where/proxy.phpissaved/" or "http://site.com/folder/where/proxy.phpissaved/proxy.php?url=" ?


(Daniel Naber) #4

Try:



languagetool_rpc_url: "http://www.mywebsite.org/wp-content/tools/lt/proxy.php",

(vitaljik) #5

Lovely, thank you very much. All works now, I also switched to php 5.5 and latest proxy.php. Cheers