简体   繁体   English

如何将对象存储连接到IBM Cloud(Bluemix)中的.php应用程序

[英]How to connect Object Storage to a .php app in IBM Cloud (Bluemix)

I have a Cloud Foundry PHP App and I have it bound to an Object Storage Cloud Foundry Service. 我有一个Cloud Foundry PHP应用程序,并且已将其绑定到对象存储Cloud Foundry服务。 In my php app I want to have a simple video cointainer but I want the actual video FILE to be stored in the Object Storage Cloud Foundry Service. 在我的php应用程序中,我希望有一个简单的视频硬币容器,但我希望实际的视频文件存储在Object Storage Cloud Foundry Service中。 I basically want to do something like this: 我基本上想做这样的事情:

<video width="320" height="240" controls autoplay>
  <source src="my_video.MP4" type="video/mp4">
  Sorry, your browser doesn't support the video element.
</video>

But I don't know how to establish the connection or what the source path would be to the file located in my Object Storage Cloud Foundry Service. 但是我不知道如何建立连接或到对象存储Cloud Foundry服务中文件的源路径是什么。

Looks like there is a working example on Github.Just pointing to a link . 看起来Github上有一个工作示例。只需要指向一个链接即可。 https://github.com/christiancompton/php-objectstorage https://github.com/christiancompton/php-objectstorage

Even I am trying to achieve same thing.Hope it helps 甚至我也在努力实现同样的目标。希望对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM