Welcome to the new Box Support website. Check out all the details here on what’s changed.

function exec in php run Box CLI

Answered
New post

Comments

2 comments

  • cbetta

    Hi  , when running PHP exec the Path and user permissions are often different than when accessing the shell directly. It's hard to debug from our end to be honest, I am sorry.

     

    It might be easier for you to make API call directly using the JWT token. We have some documentation in PHP available here.

     

    https://developer.box.com/guides/authentication/jwt/without-sdk/

    0
    Comment actions Permalink
  • huunghia

    Thank you,

    Because our client asked to use the cli box, so I used PHP exec.

    We will make API calls directly with the JWT token

    0
    Comment actions Permalink

Please sign in to leave a comment.