Hi everyone i have a problem which is driving me crasy! I am a web designer but programming is not my strong point, especially when things dont work! lol
So the problem is this.
I had a site on a shared hosting account.
I now have my own dedicated linux hosting account.
I want to take the site from the shared account to my dedicated server.
The site is for a sports league which keeps stats on players goals etc and is driven by a mysql database.
I downloaded all the site files and exported the mysql database.
I then uploaded them all to my server ran the mysql install (having changed the database name to reflect the new one) and it worked perfect.
However there is a problem somewhere in the code, as you can see from how the site currently looks here:
http://server7336.dedicated.webfusion.co.uk:81/niinline/
It seems to be trying to call on a path called “htdocs” which seems to be what the root directory was called from my previous hoster.
My dedicated server root is called public_html
i have spoke with my dedicated supplier and they say that somewhere in my files the root must be named “htdocs” i have searched manually and ran a search with windows Grep(as i use pc) and nither has found any mention of htdocs in any of the files.
When i look at my index.php shown below i see it is calling on ($_SERVER[‘DOCUMENT_ROOT’].
which i think means it should find the root nomatter what it is called but it seems to find somewhere the root called htdocs.
Can anyone help ???
index.php
<?php $BodyID = "Home"; $Title = "Northern Ireland Inline Hockey Association"; ?> <?php include ($_SERVER['DOCUMENT_ROOT']."/includes/page_header.php");?>