我对WOPI有点困惑。我想要实现一个基本的例子,只是为了测试。我做了一个基本的WOPI主持人:
<?php
require 'vendor/autoload.php';
use Pux\Mux;
use Pux\Executor;
class FilesController {
// route: /files/:name
public function getFileInfoAction($name) {
$path = "office/$name";
if (file_exists($path)) {
ruby-1.8.6-p399 :005 > Date.today
=> Wed, 24393 Dec 2135
ruby-1.8.6-p399 :006 > DateTime.now
=> Wed, 24393 Dec 2135 17:07:09 +0100
wopi@wopi-desktop:~/work/trunk$ date
Mi 2. Feb 17:08:46 CET 2011
出什么事了?
我正在尝试Verifying that requests originate from Office for the web by using proof keys 我已经读过这个资源很多次了,但仍然不知道如何在PHP中实现它。 我尝试了下面的代码,它似乎没有解决问题,我不知道下一步该做什么。 有人能给我一个建议吗? $rsa = new Crypt_RSA();
$modulus = new Math_BigInteger(base64_decode($modulus), 256);
$exponent = new Math_BigInteger(base64_decode($expone