Jump to content

chainsawal

New Members
  • Posts

    3
  • Joined

  • Last visited

chainsawal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have been using GoDaddy for a hosting company for some time (I know... not the favorite of most people)... Today, I was creating subfolders in my site which means I needed to change my php include links from relative (since all the file referencing them were in the same directory) to absolute links. As I am on a shared server, GoDaddy uses home/youraccount/etc.. which isn't the real file path and when I try to use includes it won't work. I also tried <?php include($_SERVER['DOCUMENT_ROOT'].'/home/etc...'); ?> to no avail as it seems they disable that from their side and since I am on a shared server won't provide that info which I understand. Am I just SOL with GoDaddy or is there some other way to reference absolute links while on a shared server that I am not aware of? I can't imagine there is not a way to do this given their size, but their customer support is worthless as they referred me to "PHP documentation" as if there is a section entitled "GoDaddy: Avoid like the Plague" in it. Sorry just frustrated... any help would be appreciated...as moving my entire hosting platform and 5 websites, SQL databases, etc. isn't on my to-do list this year. Chainsaw...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.