【问题标题】:How to include php page from different website to current website?如何将不同网站的php页面包含到当前网站?
【发布时间】:2019-07-17 19:58:48
【问题描述】:

我创建了一个域,但该域的所有函数和类都将存储在另一个域中。但我无法使用 include 或 require 方法获取页面。我收到以下错误:

警告:include_once() [function.include-once]:无法在第 3 行的 /domain.com/includes/functions.php 中启用加密警告:include_once(https:/other_domain.com/access.php) [ function.include-once]:打开流失败:第 3 行 /domain.com/includes/functions.php 中的操作失败警告:include_once() [function.include]:打开“otherdomain.com/access.php”失败在第 3 行的 /domain.com/includes/functions.php 中包含 (include_path='.:/opt/php52/lib/php')

【问题讨论】:

  • 您是否在新域上打开了错误报告?我很想知道当您尝试 include 或 require 时会出现什么错误。
  • 警告:include_once() [function.include-once]:无法在第 3 行的 /domain.com/includes/functions.php 中启用加密警告:include_once(https:/other_domain.com/ access.php)[function.include-once]:打开流失败:第 3 行 /domain.com/includes/functions.php 中的操作失败警告:include_once() [function.include]:打开 'otherdomain.com 失败/access.php' 用于在第 3 行的 /domain.com/includes/functions.php 中包含 (include_path='.:/opt/php52/lib/php')

标签: php ssl url cross-domain


【解决方案1】:

加密错误让我认为这可能是您的 SSL 的问题: OPENSSL file_get_contents(): Failed to enable crypto

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-13
    • 1970-01-01
    • 1970-01-01
    • 2011-12-18
    • 2016-07-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多