Hi all "im new here" Hoping someone can help me with this peculiar problem. I have a vps running Plesk (9.5.4) + PHP 5.3 For the domain I am working on, I have specified additional directories to the PHP include_path via vhost conf file. One of those directories is outside of webroot, so is same level as httpdocs.
eg:
:/var/www/vhosts/example.com/outer_includes
My scripts are able to include PHP files, using require, include etc from the directory added to PHP's include, so I know that its working perfectly. Problem I have is that if I call a script with HTTPS, I get require_once fatals, as for some reason the includes no longer work.
---------------------------------------------------
eg:
include_me.php lives in a directory on same level as httpdocs, which has been added to PHP include directories.
/var/www/vhosts/example.com/outer_includes/include_me.php
script.php contains:
<?php
require_once('include_me.php');
?>
Calling:
http://www.example.com/script.php
This works as expected.
Calling:
https://www.example.com/script.php
This fails with fatal on the require_once()
--------------------------------------------------- I am self taught and fully expect this to be another hole in my knowledge but I can't seem to fill this one by asking Google. Can anyone advise? Would be very grateful Boreas