Comments (7)
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.
Thanks but what about API Key and API Secret ?
from opentok-php-sdk.
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:
- remove the check for the environment variables be deleting these lines:
OpenTok-PHP-SDK/sample/HelloWorld/web/index.php
Lines 21 to 24 in ea2d9ea
- substitute your own values as the parameters in this line:
- substitute again for your API Key in this line:
let me know how that works for you 😄
from opentok-php-sdk.
That has been done, it works for me.
Thanks for your replies.
from opentok-php-sdk.
wonderful, i'm glad that worked.
from opentok-php-sdk.
Hi,
Could you help me to build php sdk(latest_version) on my server?
from opentok-php-sdk.
@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)
- opentok/src/OpenTok/Util/Client.php - handleSignalingException sporadically causes another unhandled exception HOT 1
- How I can set a time limit for video call? HOT 1
- ClientTest.php causes a Composer deprecation notice when updating opentok/opentok HOT 1
- Client error: `POST https://api.opentok.com/session/create` resulted in a `403 Forbidden` response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><errorPayload><code>-1</code><message>No suitable authentication (truncated...) in my larvel project HOT 2
- PHP 8 support HOT 1
- 4.10.0 SIP dialing error HOT 4
- jquery-3.4.1.min.js: 2 vulnerabilities (highest severity is: 6.1) HOT 1
- bootstrap-3.0.0.min.js: 6 vulnerabilities (highest severity is: 6.1) - autoclosed HOT 3
- firebase/php-jwt-v5.5.1: 1 vulnerabilities (highest severity is: 9.1) - autoclosed HOT 1
- phpunit/phpunit-8.5.26: 2 vulnerabilities (highest severity is: 6.1) - autoclosed HOT 1
- jquery-1.10.2.min.js: 4 vulnerabilities (highest severity is: 6.1) - autoclosed HOT 1
- Invalid stream object HOT 1
- Screenshare Dialogue box HOT 2
- 4.11.0 SIP dialing error HOT 1
- phpunit/phpunit-8.5.31: 2 vulnerabilities (highest severity is: 6.1) - autoclosed HOT 1
- bootstrap-4.0.0.min.js: 4 vulnerabilities (highest severity is: 6.1) HOT 1
- The apiKey was not a string nor an integerin laravel project HOT 2
- Error 409 with the "startArchive" function HOT 1
- Fix Sample App SipCall
- E_ERROR: Cannot redeclare OpenTok\Util\array_is_list() (previously declared in/opentok/opentok/src/OpenTok/Util/Validators.php:465 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentok-php-sdk.