Hi guys, I'm currently working on a PhP that requires me to parse a YAML file using a function yaml_parse_file(). I am still new to the language, and that’s all, so when I tried to use this function on my unchanged XAMPP server on Windows, I got a "function not found" error. After some research, I found that in fact you have to install extensions in your PHP installation in order to be able to use this function. http://php.net/manual/en/yaml.setup.php this link describes the installation process in detail, and I read it, however I do not quite understand the installation procedure. The link above states that the DLL package is not available for download, however the comment is directed to this link http://pecl.php.net/package/yaml,where you can clearly see the DLL package for the YAML parser. My question is, could you tell me how to perform this installation procedure on a Windows computer using XAMPP.
Change: https://code.google.com/p/php-yaml/wiki/InstallWithPecl, this link may offer you a deeper understanding of this topic, although I don’t understand how it all works :(
Edit2: I tried to load the DLL indicated by the link above, add it to the php / ext folder and add an entry to php.ini extension=php_yaml.dllbut when I try to check if my extension has downloaded the following script, I get an error.
<?php
if (extension_loaded(yaml))
echo "yaml loaded :)";
else
echo "something is wrong :(";
?>
source
share