Installing the PHP YAML extension using XAMPP on Windows

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 :(";
?>
+5
source share
3 answers

, , , .

  • YAML DLL
  • php_yaml.dll xampp/php/ext
  • php.ini xampp/php extension=php_yaml.dll,
  • yaml.dll zip xampp/apache/bin
  • XAMPP.
  • php script echo phpinfo();
  • yaml . "", YAML .
+15

!

5... DLL . php_yaml.dll, yaml.dll. ( , , )

0

2018.04.17, Windows 10, 5, , : yaml.dll .

My solution was to copy the php.ini file from the php folder to the folder that Apache was looking for to use php. phpinfo () told me that it was c: \ windows (which you need for admin rights)

Earlier, I just copied php_yaml.dll to the apache dll folder. I left it there, maybe this is also part of the solution.

PS. Thanks to the & ^% * administrators for deleting my previous call for help. It did not help.

0
source

All Articles