Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
No much luck here.
Https probably is shared between every users of the hosting facility, and have a different web path.
This means that you must address explicitely the path to your files.
Or have a check done first, and adapt a variable with the correct path prefix, like:
(in pseudo code)
PHP Code:
if protocol=='https' then $path="/var/www/vhosts/mydomain/httpdocs"; else $path=$_SERVER['DOCUMENT_ROOT'];
and use this $path variable when you do includes.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 07-16-2009 at 04:30 AM..
|