Jump to content

Recommended Posts

Posted

I established a subdomain. I have an index.php created in the subdomain that contains include statements. When I bring up subdomain.maindomain.com/index.php on my web browser and view the source code, the includes are not there. There's something I'm obviously missing, but just cant see it! Anyone have an idea? (It's not a big deal...just curious!)

Posted

Hi Steve.

 

Are you using paths to the included files based on DOCUMENT_ROOT? With a subdomain that may limit your options.

 

As far as I know, PHP includes will take an absolute path, like /home/. . ./public_html/. . ., and that should handle the issue.

Posted

Got it to work. (Amazing what walking away and clearing your head will do! :) ) It was a matter of cleaning out cache and putting the proper path in. Now I just have to figure out why the graphic isn't showing, but I know that's path related to.

 

Thanks for the tip btrfld!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...