PHP导入文件路径问题,require_once

WBOY
Release: 2016-06-23 14:38:31
Original
974 people have browsed it


require_once导入路径正确,但是$alipay_config这个变量没用,


回复讨论(解决方案)

没有看到在哪里使用了 $alipay_config


require_once导入路径正确,但是$alipay_config这个变量没用,
$alipay_config在引入的文件里

你是在函数里引入的文件,那么被引入的文件中的变量不就是局部变量了吗?
除非你有全局声明

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!