Skip to content

Commit 947cc2d

Browse files
committed
Merge pull request #32 from peichao01/sdk-config-bug
Sdk config bug
2 parents 8d2212a + ed52aa0 commit 947cc2d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

qiniu/conf.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
<?php
2+
/**
3+
* <p.c.naruto@17chj.com> 我在使用的时候无法在其他php文件的函数中使用此页的这几个变量。因为我非主职PHP的,经查证,全局变量使用前需要前声明才行。
4+
* 如此这般之后,我就可以正常的按照php-sdk-doc 的指南来正常使用了。
5+
* 先提交,望大家审核。
6+
*/
7+
global $QINIU_UP_HOST;
8+
global $QINIU_RS_HOST;
9+
global $QINIU_RSF_HOST;
10+
11+
global $QINIU_ACCESS_KEY;
12+
global $QINIU_SECRET_KEY;
213

314
$QINIU_UP_HOST = 'http://up.qiniu.com';
415
$QINIU_RS_HOST = 'http://rs.qbox.me';

0 commit comments

Comments
 (0)