php中要引用自己定义的库函数时,初学者一般会出现Warning: include(): Failed opening ‘mylib.php’ for inclusion (include_path=‘D:\php\pear’),此时可以更改自己的php.ini文件中
; Windows:" \path1;\path2"
; include_path = “.;c:\php\includes”
改为
Windows: \path1;\path2
include_path = D:\php\pear
D:\php\pear是自己的文件地址,pear是新建的,然后保存,重启apache24就行。
php中引用自己定义的库函数时出现的问题
最新推荐文章于 2023-06-07 18:43:35 发布