[英]How to include a .phar and reference it
My directory looks like this 我的目录看起来像这样
Then my code looks like this: 然后我的代码如下所示:
require "aws.*";
use Aws\DynamoDb\DynamoDbClient;
Is this the right way to do it? 这是正确的方法吗?
It doesn't show me an error or anything so I don't know if it's working or not. 它没有显示我任何错误或任何错误,所以我不知道它是否有效。
You can 您可以
include 'aws.phar';
or 要么
include 'phar://aws.phar/internal/file.php';
or read documentation about using phar 或阅读有关使用phar的文档
PS you cannot use wildcards in require or include. PS,您不能在require或include中使用通配符。
PPS use
is not a reference. PPS的use
不是参考。 Read more about use . 阅读有关使用的更多信息 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.