Today is my second day on the job and my first day at work. Because the materials and account have not been downloaded yet, I cannot officially enter the development state. However, I also asked the technical brother to read the project source code and run the demo to develop the source code. Track the work so I can understand it.
Among them, I understood the first demo very well, but I read the second demo and had problems running the project. The error message at that time was like this,
Warning: file_get_contents(http://slashdot.org/): failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in E:teduPSD1606tencentcrawl.webdev .comapplicationthird_partysimple_html_dom.php on line 75
Later, I checked the error message on Baidu and it said that the openssl extension was not enabled in PHP, so I asked how to enable openssl on Baidu
1。将php安装目录下ext文件夹下的php_openssl.dll、libeay32.dll、ssleay32.dll 、php_xmlrpc.dll、php_curl.dll;5个文件复制到windows下的system或者system32目录下:<br>2。将php.ini复制到windows文件夹中,打开php.ini,将extension=php_openssl.dll前面分号去掉;<br>3。重启Apache服务器。<br><br><br>后来我发现上面的5个文件,并不都是在ext目录下,三个在ext目录下,两个在php安装根目录下,并且如果有少的,可以去php官网下载对应版本的。<br>我又通过百度,了解了openssl扩展的作用,知道了openssl扩展的作用是访问https用的,<br>弄出来的一瞬间,我真的很激动,不过也怪我,我之前耽误了太多时间,没有找到重点。以后要再接再厉,吸取这次的经验与教训。