Giter Site home page Giter Site logo

Comments (7)

aoberoi avatar aoberoi commented on July 19, 2024

The built-in webserver that the run-demo script uses depends on php 5.4 or above. No worries though! You can still run the demo using production PHP webservers like apache and nginx.

Here are some instructions that to set it up, that apply here because the demos use the Slim framework: http://docs.slimframework.com/#Route-URL-Rewriting

The document root will be the samples/HelloWorld/web directory. For example if you are using Apache, you'll need to copy the example .htaccess file into the document root directory and set up the virtual host (if you use the example make sure you set the DocumentRoot and Directory correctly).

from opentok-php-sdk.

julienwa avatar julienwa commented on July 19, 2024

Thanks but what about API Key and API Secret ?

from opentok-php-sdk.

aoberoi avatar aoberoi commented on July 19, 2024

good point, i forgot about that. most production web servers are usually running as a different user with a daemon so setting the environment variables (as the run-demo script does now) is not the best way.

i suggest instead making some modifications to the source directly:

let me know how that works for you 😄

from opentok-php-sdk.

julienwa avatar julienwa commented on July 19, 2024

That has been done, it works for me.
Thanks for your replies.

from opentok-php-sdk.

aoberoi avatar aoberoi commented on July 19, 2024

wonderful, i'm glad that worked.

from opentok-php-sdk.

liyifei1987 avatar liyifei1987 commented on July 19, 2024

Hi,
Could you help me to build php sdk(latest_version) on my server?

from opentok-php-sdk.

aoberoi avatar aoberoi commented on July 19, 2024

@liyifei1987 i'll need a little more information about the problem you are having in order to help.

from opentok-php-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.