Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I added SSL on my site and and updated the 'http://' to 'https://' in the absolute paths.

I am receiving an error on my relative php include though.

CODE:

include("connection.php");

Error Message

Warning: include(connection.php) [function.include]: failed to open stream: No such file or directory in pathTo/includes/index_header.php on line 57

I am assuming I need to update something to "https" but I don't know where.

share|improve this question
I think this is not related to HTTPS/SSL, because HTTP is not related to PHP – Akam 42 mins ago
The error was not occurring a few minutes ago before I put these files on the SSL server, so it needs to have something to do with the SSL – zeckdude 40 mins ago
No, you can check if(file_exists('connection.php')){echo 'yes'} and then try to find why? – Akam 39 mins ago
2  
ssl can have different virtual server config then the http version. is it possible the that some option like follow symlinks is not enabled on the ssl config? – Orangepill 38 mins ago
the index_header.php files is inside the "includes" folder. From within the index_header.php file, I am trying to include connection.php which sits within the same folder. Since it is in the same folder, I didn't add the folder names in the include, but I just tried adding it, and the error went away. Not sure why that worked. – zeckdude 35 mins ago
show 5 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.