Results 1 to 4 of 4

Thread: How to include additional PHP files

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    2

    How to include additional PHP files

    I am wondering how to include a PHP file in a Lianja webview. I would normally type the line include "myfile.php";. Where do I store such a file and how do I access it within Lianja?

  2. #2
    Quote Originally Posted by dsmith View Post
    I am wondering how to include a PHP file in a Lianja webview. I would normally type the line include "myfile.php";. Where do I store such a file and how do I access it within Lianja?
    If you only need the file to be available to a particular app then open that app and add the file via the Apps Workspace. If you want it available to multiple apps then put it in the Lianja Library (via the Library Workspace).

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thank you very much!

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Lianja includes PHP, Python and JavaScript as part of the distribution as these are embedded in the App Builder.

    PHP is located in:
    C:\lianja\scriptinglanguages\php

    The PHP configuration file is located in:
    C:\lianja\scriptinglanguages\php\conf\php.ini

    You can also set the include_path in php.ini. It is currently commented out and defaults to the current app directory. You can therefore reference php libraries relative to the app like this:
    include("..\libraries\myphplib.php")
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

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