php切换到SSL时无法正常工作

时间:2013-07-11 07:30:08

标签: php ssl https include

我在我的网站上添加了SSL,并在绝对路径中将“http://”更新为“https://”。

我收到的相对php包含错误。

CODE:

include("connection.php");

错误消息

  

警告: include(connection.php)[function.include]:无法打开   stream:没有这样的文件或目录   pathTo /包括/ index_header.php   在第57行

我假设我需要更新“https”,但我不知道在哪里。

1 个答案:

答案 0 :(得分:-1)

我认为你在Index_header.php中加入了index.php。即。它从根文件夹加载文件,因此您需要添加includes文件夹:index.php< - index_header.php< - connection.php

你需要做

includes("includes/connection.php");