Matsaki
Registered
I have changed from having my own server (Debian) to a web host in the same company (also running Debian), as I'm not so good in UNIX, MYSQL and programming and the guy who take care of the server is gone, I decided to change.
Anyway. I have uploaded my PHP/MySQL site to the new host but I can't get it going. The search path don't want to work.
This is the first errors I get on the page:
In my header.php the configuration looks like this:
So why will it not open the three /Includes as above ? They are there and reachable if I i.e. check from the browser writing the URL to the /Includes and there I see all the files. Where do I go wrong here?
Thanks for any help!
(I'm not sure this is the right forum though)
Thnaks!
Anyway. I have uploaded my PHP/MySQL site to the new host but I can't get it going. The search path don't want to work.
This is the first errors I get on the page:
Warning: include(/includes/dbopen.php) [function.include]: failed to open stream: No such file or directory in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 35
Warning: include() [function.include]: Failed opening '/includes/dbopen.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 35
Warning: include(/includes/utils.php) [function.include]: failed to open stream: No such file or directory in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 36
Warning: include() [function.include]: Failed opening '/includes/utils.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 36
Warning: include(/includes/auth.php) [function.include]: failed to open stream: No such file or directory in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 37
Warning: include() [function.include]: Failed opening '/includes/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/scancypc/public_html/ayianapa/Structure/header.php on line 37
In my header.php the configuration looks like this:
if ( ban($ip_range, $_SERVER['REMOTE_ADDR']) )
die('Du är inte längre medlem på ayianapa.nu och avstängd från sajten!');
if ($_SERVER['SERVER_NAME'] == "www.ayianapa.nu" || $_SERVER['SERVER_NAME'] == "ayianapa") $DOCUMENT_ROOT = "/public_html/ayianapa";
include($DOCUMENT_ROOT ."/includes/dbopen.php");
include($DOCUMENT_ROOT ."/includes/utils.php");
include($DOCUMENT_ROOT ."/includes/auth.php");
So why will it not open the three /Includes as above ? They are there and reachable if I i.e. check from the browser writing the URL to the /Includes and there I see all the files. Where do I go wrong here?
Thanks for any help!
(I'm not sure this is the right forum though)
Thnaks!