Results 1 to 4 of 4

Thread: [Answers] PHP

Threaded View

  1. #1
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135

    [Answers] PHP

    Q:
    How to include external php libraries such as mpdf
    A:
    In the same way you would do it normal PHP code.
    Copy your PHP library into either the app directory (use drag and drop) or the library directory, then reference it using require() in the code for your PHP webview section.

    <html>
    <body>
    <?php
    require("mylib.php");
    echo "Hello world";
    ?>
    </body>
    </html>

    and then mylib.php contains:

    <html>
    <body>
    <?php
    echo "Hello world from mylib</br>";
    ?>
    </body>
    </html>

    and the result is:



    Also note that on windows the
    php.ini file is in:
    c:\Lianja\scriptinglanguages\php\conf\php.ini
    You can edit the
    include_path to include directories containing your PHP libraries or else add ..\library\ to the include_path so that require() will look in the Lianja library directory as well as the App directory.



    ​All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
    Last edited by josipradnik; 2017-01-02 at 03:41.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us