获取http和https的问题

rokey001 2009-02-26 02:12:40
$orders = file_get_contents("https://cp.element5.com/esales/cp/login/index.html");不能成功
$orders = file_get_contents("http://cp.element5.com/esales/cp/login/index.html");可以成功
这个是为什么啊?怎么能获取https成功呢?奇怪了,操作系统为windows,,linux环境测试两个都行
...全文
144 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
iasky 2009-02-26
  • 打赏
  • 举报
回复
SSL的不行,你cURL把,还需要OpenSSL支持
yctin 2009-02-26
  • 打赏
  • 举报
回复
需要安装openssl ext
CuTe_CuBe 2009-02-26
  • 打赏
  • 举报
回复
因为你PHP配置里面open_ssl的扩展打开了。
john_shen_tiro1 2009-02-26
  • 打赏
  • 举报
回复
http://cp.element5.com/esales/cp/login/index.html 我觉得2者没有关系 这个在我看来不过是一个路径问题。

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧