Skip to content

想问一下,配置文件里配置微信证书的时候,推荐用绝对路径的原因 #2770

Answered by TheNorthMemory
rare0619 asked this question in Q&A
Discussion options

You must be logged in to vote

相对路径有可能找不到文件。比如, php程序运行时的的启动参数 php /app/run.php,配置文件的相对路径填的是 '../certificates/wxpay_abcdef.pem',这得靠猜才能知道运行时的..相对位置是哪里。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rare0619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants