Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Performing cross-platform calls to php from Qt5

Performing cross-platform calls to php from Qt5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eamorr
    wrote on last edited by
    #1

    I'm developing a Qt desktop GUI.

    I need to be able to run:

    php myWonderfulScript.php parameter from the Qt app.

    php is available on the command line on my development computer, however it's unlikely to be available on the user's computer. I also need php5-curl installed...

    Can I reliably distribute php .so/.a/.dll files with my Qt desktop application so it will run on Mac/Windows/Linux? (I know there are big licensing issues that arise in this situation and I will be sure to not steal anyones work)

    I'm using Qt Creator 3.1.2 (based on Qt 5.3.1)

    Many thanks for your help,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Out of curiosity what does your php script do ? I might be simpler to translate it in C++ to avoid have to install PHP on each target.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Eamorr
        wrote on last edited by
        #3

        Hi,

        Thanks for your reply.

        I guess that may be an option, but the script is 3,000 lines long.

        I would prefer to continue to maintain the PHP as-is and just put a Qt wapper around it.

        Is including PHP possilbe in a reliable way?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          "This":http://forums.devnetwork.net/viewtopic.php?t=10924 might help

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved