admin管理员组文章数量:1122846
I am going to install and use AWS SDK for PHP to facilitate uploads/list objects directly from the front-end of my WordPress instance to S3. What is the best practice to do that ?
P.S: I don't want to use plugins
I am going to install and use AWS SDK for PHP to facilitate uploads/list objects directly from the front-end of my WordPress instance to S3. What is the best practice to do that ?
P.S: I don't want to use plugins
Share Improve this question asked Nov 16, 2015 at 21:46 arminarmin 472 silver badges7 bronze badges 3 |2 Answers
Reset to default 0- Install Amazon Web Services Plugin. (https://wordpress.org/plugins/amazon-web-services/)
- Add all the required keys, at the AWS menu that now should be available in your WP dashboard.
Include the library in your code, in my case was:
require '/path/to/plugins/amazon-web-services/vendor/aws/aws-autoloader.php';
Enjoy!
If you don't want to use a plugin you may want to read this post:
How can I install AWS SDK for PHP in Wordpress without installing a Plugin?
本文标签: uploadsHow To install AWS SDK for PHP in wordpress
版权声明:本文标题:uploads - How To install AWS SDK for PHP in wordpress? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282227a1926577.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
<?php /** plugin name: AWS SDK */ require_once( 'aws_sdk/....
, whereaws_sdk
is the folder where you put the SDK after downloading it. You're still going to have to write code to use that SDK to do stuff on the frontend though – Tom J Nowell ♦ Commented Feb 9, 2023 at 15:29