我想在cakephp2中使用yaml_parse_file()函数,但出现错误
“致命错误:在第7行上的D:\ Downloads \ xampp \ htdocs \ carebody-2012- \ app \ Lib \ RoadYaml.php中调用未定义的函数yaml_parse_file()”。
我认为我遇到此错误是因为我的php中没有yaml。问题是我不知道如何安装下载的yaml文件?
如果您使用的是apache2,请编辑file /etc/php5/apache2/php.ini
。
extension=yaml.so
在动态扩展部分中添加。
对于完整的例子:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; ... or with a path:
;
; extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
extension=yaml.so
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句