简体   繁体   English

PHP命令行上没有SSL

[英]No ssl on php commandline

I have a php script that works perfectly on the browser BUT it has this error on windows command line. 我有一个在浏览器上完美运行的php脚本,但是在Windows命令行上有此错误。

在此处输入图片说明

I have ssl enabled in php config and from what I gather it works for browser but not command line but I don't understand the difference between these two (neither is windows service I belive). 我在php config中启用了ssl,从我收集的信息来看,它适用于浏览器,但不能用于命令行,但是我不理解这两者之间的区别(我都不相信Windows服务)。 Basicly I don't know what to do about it and I need to run the script from commandline, then create .bat file (in order to start windows scheduler - like cron under linux). 基本上,我不知道该怎么办,我需要从命令行运行脚本,然后创建.bat文件(以启动Windows Scheduler,例如linux下的cron)。

I have windows Xp and Xampp. 我有Windows XP和Xampp。 Please help. 请帮忙。

As mentioned in comment above. 如上文评论中所述。 Php in command line uses different php.ini config. 命令行中的PHP使用不同的php.ini配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM