How come my server side includes wont work on my subdomain site, but will on my normal domain site?

I’m using PHP, with php includes, and I can’t get them to display on my subdomain page. I get the fatal alert error, saying that it can’t locate the file (something like that). However, when I do the exact same thing on my regular site it displays correctly. Any ideas? Help Needed!!!

I am using Dreamweaver 4 and hosting through godaddy if that is helpful…

2 Comments Post a Comment
  1. pureblueagave says:

    Check how the include is linked. For instance…

    or

    If you’re trying one of those, try the other and see if it works.

  2. chillininvt says:

    If you are using a subdomain the smarest thing to do is use an absolute path to the file location. Such as

    include(‘var/www/html/incudes/file.php’);

    and not

    include(“../includes/file.php”);

    as you prolly wont be able to resolve anything up over the root directory of the subdomain depending on your server configuration of course.

Leave a Reply